Skip to content

Commit

Permalink
Avoid secrets generation (#28)
Browse files Browse the repository at this point in the history
Co-authored-by: Robert Ulbrich <[email protected]>
  • Loading branch information
flamarion and rpemsel authored Aug 30, 2023
1 parent 52271b6 commit 73fb61a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
4 changes: 2 additions & 2 deletions charts/wandb/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: wandb
description: A Helm chart for deploying W&B to Kubernetes
type: application
version: 0.2.0
appVersion: "0.22.0"
version: 0.2.1
appVersion: "0.40.0"
icon: https://wandb.ai/logo.svg
maintainers:
- name: wandb
Expand Down
6 changes: 4 additions & 2 deletions charts/wandb/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -177,18 +177,20 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
{{- if or (not .Values.bucket) .Values.existingClaim }}
- name: wandb-data
{{- if and (not .Values.bucket) .Values.existingClaim }}
persistentVolumeClaim:
claimName: {{ .Values.existingClaim | default (include "wandb.volumeClaim" .) }}
{{- else }}
emptyDir: {}
{{- end }}
{{- if .Values.customCACerts }}
- name: wandb-ca-certs
configMap:
name: {{ include "wandb.fullname" . }}-ca-certs
{{- end }}
---
{{- if and (not .Values.bucket) (not .Values.existingClaim) }}
{{- if and (not .Values.bucket) .Values.existingClaim }}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
Expand Down
4 changes: 3 additions & 1 deletion charts/wandb/templates/secrets.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.createSecrets }}
{{- $secretName := print (include "wandb.fullname" .) "-secrets" }}
{{- $secret := (lookup "v1" "Secret" .Release.Namespace $secretName) }}
apiVersion: v1
Expand Down Expand Up @@ -27,4 +28,5 @@ data:
{{- end}}
{{- if .Values.sso.clientSecret }}
CLIENT_SECRET: {{ .Values.clientSecret | b64enc }}
{{- end}}
{{- end}}
{{- end}}
3 changes: 3 additions & 0 deletions charts/wandb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

# Set to false in case you rely on externally created secrets e.g. when using Sealed Secrets
createSecrets: true

# dns hostAliases, generally only used in development
hostAliases: []
# Custom CA's to make SSL verification work for self signed certs
Expand Down

0 comments on commit 73fb61a

Please sign in to comment.