-
Notifications
You must be signed in to change notification settings - Fork 674
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for leveraging pre-created secrets in flyte-binary helm c…
…hart (#3807) * Add support for leveraging pre-created secrets in flyte-binary helm chart Signed-off-by: Jeev B <[email protected]> * template clientSecretsExternalSecretRef Signed-off-by: Jeev B <[email protected]> * Store sensitive values in Secret object Signed-off-by: Jeev B <[email protected]> * Condition client secret hash on value being present Signed-off-by: Jeev B <[email protected]> * Quote db password Signed-off-by: Jeev B <[email protected]> * Update sandbox manifest Signed-off-by: Jeev B <[email protected]> * fix build Signed-off-by: Jeev B <[email protected]> * debug build Signed-off-by: Jeev B <[email protected]> * add back db password path Signed-off-by: Yee Hing Tong <[email protected]> * Drop link Signed-off-by: Jeev B <[email protected]> --------- Signed-off-by: Jeev B <[email protected]> Signed-off-by: Yee Hing Tong <[email protected]> Co-authored-by: Yee Hing Tong <[email protected]>
- Loading branch information
1 parent
e6bd94a
commit 7102814
Showing
11 changed files
with
163 additions
and
91 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 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,52 @@ | ||
{{- if not (include "flyte-binary.configuration.externalConfiguration" .) }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ include "flyte-binary.configuration.configSecretName" . }} | ||
namespace: {{ .Release.Namespace | quote }} | ||
labels: {{- include "flyte-binary.labels" . | nindent 4 }} | ||
{{- if .Values.commonLabels }} | ||
{{- tpl ( .Values.commonLabels | toYaml ) . | nindent 4 }} | ||
{{- end }} | ||
{{- if .Values.configuration.labels }} | ||
{{- tpl ( .Values.configuration.labels | toYaml ) . | nindent 4 }} | ||
{{- end }} | ||
annotations: | ||
{{- if .Values.commonAnnotations }} | ||
{{- tpl ( .Values.commonAnnotations | toYaml ) . | nindent 4 }} | ||
{{- end }} | ||
{{- if .Values.configuration.annotations }} | ||
{{- tpl ( .Values.configuration.annotations | toYaml ) . | nindent 4 }} | ||
{{- end }} | ||
type: Opaque | ||
stringData: | ||
{{- if .Values.configuration.database.password }} | ||
012-database-secrets.yaml: | | ||
database: | ||
postgres: | ||
password: {{ .Values.configuration.database.password | quote }} | ||
{{- end }} | ||
{{- if eq "s3" .Values.configuration.storage.provider }} | ||
{{- if eq "accesskey" .Values.configuration.storage.providerConfig.s3.authType }} | ||
013-storage-secrets.yaml: | | ||
storage: | ||
stow: | ||
config: | ||
access_key_id: {{ required "Access key required for S3 storage provider" .Values.configuration.storage.providerConfig.s3.accessKey | quote }} | ||
secret_key: {{ required "Secret key required for S3 storage provider" .Values.configuration.storage.providerConfig.s3.secretKey | quote }} | ||
{{- end }} | ||
{{- end }} | ||
{{- if .Values.configuration.auth.enabled }} | ||
{{- if .Values.configuration.auth.enableAuthServer }} | ||
{{- if .Values.configuration.auth.internal.clientSecretHash }} | ||
014-auth-secrets.yaml: | | ||
auth: | ||
appAuth: | ||
selfAuthServer: | ||
staticClients: | ||
flytepropeller: | ||
client_secret: {{ .Values.configuration.auth.internal.clientSecretHash | quote }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
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
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
Oops, something went wrong.