File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 1+ { {/*
2+ Fetch the CA Bundle from a specified secret if enabled
3+ */} }
4+ { {- define " eoapi-support.fetchCaBundle" -} }
5+ { {- if .Values.enableCaBundleFetch -} }
6+ { {- $secretName := .Values.caBundleSecretName | default " eoepca-ca-secret" -} }
7+ { {- $caBundle := " " -} }
8+ { {- with (lookup " v1" " Secret" " default" $secretName ) -} }
9+ { {- $caBundle = index .data " ca.crt" | b64dec -} }
10+ { {- end -} }
11+ { {- $caBundle -} }
12+ { {- else -} }
13+ "" # Return an empty string if not enabled
14+ { {- end -} }
15+ { {- end -} }
Original file line number Diff line number Diff line change 1+ # when enabled, metrics-server will use the caBundle from the provided secret
2+ # ref: https://github.com/developmentseed/eoapi-k8s/issues/154
3+ enableCaBundleFetch : false
4+ caBundleSecretName : " "
5+
16# most of this was cribbed from https://github.com/2i2c-org/infrastructure/blob/master/helm-charts/support/
27# so giving props where props are due to Yuvi Panda :sparkles:
38prometheus-adapter :
@@ -163,7 +168,6 @@ grafana:
163168 dashboardsConfigMaps :
164169 default : " eoapi-dashboards"
165170
166-
167171metrics-server :
168172 apiService :
169173 create : true
You can’t perform that action at this time.
0 commit comments