-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
store opensearch-dashboards configs in Secret (#426)
opensearch_dashboards.yml contains values like opensearch.password or opensearch_security.openid.client_secret which should be stored in Secrets rather than ConfigMaps. Signed-off-by: Dominik Ruf <[email protected]>
- Loading branch information
1 parent
90beaed
commit 8872abb
Showing
5 changed files
with
23 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{{- if .Values.config -}} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ template "opensearch-dashboards.fullname" . }}-config | ||
labels: {{ include "opensearch-dashboards.labels" . | nindent 4 }} | ||
type: Opaque | ||
stringData: | ||
{{- range $secretName, $secretYaml := .Values.config }} | ||
{{ $secretName }}: | | ||
{{- if eq (kindOf $secretYaml) "map" }} | ||
{{- tpl (toYaml $secretYaml) $ | nindent 4 }} | ||
{{- else }} | ||
{{- tpl $secretYaml $ | nindent 4 -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- end -}} |