Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(helm): Allow chart operators to exclude the creation of the secret manifest #28308

Merged
merged 6 commits into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
allow chart operator to deploy without creating the secret-env
  • Loading branch information
asaf400 committed May 1, 2024
commit f68c674daaf532f216a2b178988ad91ab4134387
3 changes: 2 additions & 1 deletion helm/superset/templates/secret-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
limitations under the License.

*/}}

{{- if .Values.secretEnv.create -}}
apiVersion: v1
kind: Secret
metadata:
Expand Down Expand Up @@ -51,3 +51,4 @@ stringData:
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
{{- end }}
asaf400 marked this conversation as resolved.
Show resolved Hide resolved
1 change: 1 addition & 0 deletions helm/superset/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ runAsUser: 0
# -- Specify rather or not helm should create the secret described in `secret-env.yaml` template
secretEnv:
# -- Change to false in order to support externally created secret (Binami "Sealed Secrets" for Kubernetes or External Secrets Operator)
# note: when externally creating the secret, the chart still expects to pull values from the name of the release - full logic located in _helpers.tpl file: `define "superset.fullname"`
create: true

# -- Specify service account name to be used
Expand Down