Skip to content

Commit

Permalink
Ability to set license on the app
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbroks committed Sep 1, 2023
1 parent 71db019 commit 674a92a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 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.7.1
version: 0.7.2
appVersion: 1.0.0
icon: https://wandb.ai/logo.svg

Expand Down
7 changes: 7 additions & 0 deletions charts/operator-wandb/charts/app/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,13 @@ spec:
key: SLACK_SECRET
optional: true

- name: LICENSE
valueFrom:
secretKeyRef:
name: {{ include "app.fullname" . }}-config
key: LICENSE
optional: true

- name: OIDC_SECRET
value: {{ .Values.global.auth.oidc.secret }}
- name: OIDC_CLIENT_ID
Expand Down
3 changes: 2 additions & 1 deletion charts/operator-wandb/charts/app/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ metadata:
labels:
{{- include "wandb.commonLabels" . | nindent 4 }}
data:
SLACK_SECRET: {{ default "" .Values.global.slack.secret | b64enc }}
SLACK_SECRET: {{ default "" .Values.global.slack.secret | b64enc }}
LICENSE: {{ default "" .Values.global.license | b64enc }}
1 change: 1 addition & 0 deletions charts/operator-wandb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
global:
# This should be the fqdn of where your users will be accessing the instance.
host: "http://localhost:8080"
license: ""

storageClass: ""

Expand Down

0 comments on commit 674a92a

Please sign in to comment.