Skip to content

Commit

Permalink
wandb chart config map (#83)
Browse files Browse the repository at this point in the history
Co-authored-by: Justin Brooks <jsbroks@gmail.com>
  • Loading branch information
adityachoudhari26 and jsbroks authored Feb 29, 2024
1 parent 3ed2830 commit af81f58
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: operator
description: A Helm chart for Weights & Biases operator
type: application
version: 1.1.0
version: 1.1.1
appVersion: "1.0.0"
maintainers:
- name: wandb
Expand Down
8 changes: 8 additions & 0 deletions charts/operator/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "name" . }}-charts
data:
{{- range $name, $chart := .Values.charts }}
{{ $name }}.b64: {{ $.Files.Get $chart.path | b64enc }}
{{- end }}
13 changes: 13 additions & 0 deletions charts/operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.serviceAccountName
- name: AIRGAPPED
value: {{ .Values.airgapped | quote }}
livenessProbe:
httpGet:
path: /healthz
Expand All @@ -55,6 +57,11 @@ spec:
initialDelaySeconds: 5
periodSeconds: 10
resources: {{- toYaml .Values.resources | nindent 10 }}
{{- if .Values.airgapped }}
volumeMounts:
- name: {{ include "name" . }}-charts
mountPath: /charts
{{- end }}
- args:
- --secure-listen-address=0.0.0.0:8443
- --upstream=http://127.0.0.1:8080/
Expand All @@ -66,5 +73,11 @@ spec:
- containerPort: 8443
name: https
protocol: TCP
{{- if .Values.airgapped }}
volumes:
- name: {{ include "name" . }}-charts
configMap:
name: {{ include "name" . }}-charts
{{- end }}
serviceAccountName: {{ include "manager.serviceAccount.name" . }}
terminationGracePeriodSeconds: 10
3 changes: 3 additions & 0 deletions charts/operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ clusterRole:
- apiGroups: ["*"]
resources: ["*"]
verbs: ["*"]

airgapped: false
charts: {}

0 comments on commit af81f58

Please sign in to comment.