-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support to pull bucket configurations from secrets (#224)
Support to pull bucket configurations from secrets
- Loading branch information
1 parent
43982fb
commit dbd3973
Showing
4 changed files
with
15 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
{{/* | ||
Return name of secret where bucket information is stored | ||
Return the bucket credentials secret name | ||
*/}} | ||
{{- define "wandb.bucket.secret" -}} | ||
{{- print .Release.Name "-bucket" -}} | ||
{{- if .Values.global.bucket.secretName -}} | ||
{{ .Values.global.bucket.secretName }} | ||
{{- else if .Values.global.defaultBucket.secretName -}} | ||
{{ .Values.global.defaultBucket.secretName }} | ||
{{- else }} | ||
{{- print .Release.Name "-bucket" -}} | ||
{{- 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 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