Skip to content

Commit

Permalink
feat: Allow operator-wandb to accept license as a secret key value pa…
Browse files Browse the repository at this point in the history
…ir (#218)

Allow operator-wandb to accept license as a secret key value pair
  • Loading branch information
amanpruthi authored Sep 30, 2024
1 parent dbd3973 commit b5b60af
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/operator-wandb/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: operator-wandb
description: A Helm chart for deploying W&B to Kubernetes
type: application
version: 0.18.2
version: 0.18.3
appVersion: 1.0.0
icon: https://wandb.ai/logo.svg

Expand Down
2 changes: 1 addition & 1 deletion charts/operator-wandb/charts/app/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ Glue deployment
"Capabilities" .Capabilities
) | indent 0 }}
{{- end }}
{{- end }}
{{- end }}
4 changes: 3 additions & 1 deletion charts/operator-wandb/charts/app/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ metadata:
{{- include "wandb.commonLabels" . | nindent 4 }}
data:
SLACK_SECRET: {{ default "" .Values.global.slack.secret | b64enc }}
LICENSE: {{ default "" .Values.global.license | b64enc }}
{{- if and (not .Values.global.licenseSecret.name) (not .Values.global.licenseSecret.key) .Values.global.license }}
LICENSE: {{ .Values.global.license | b64enc }}
{{- end }}
4 changes: 4 additions & 0 deletions charts/operator-wandb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ global:
host: "http://localhost:8080"
license: ""

licenseSecret:
name: ""
key: ""

cloudProvider: ""

storageClass: ""
Expand Down

0 comments on commit b5b60af

Please sign in to comment.