Skip to content

Commit 7cb269f

Browse files
committed
feat: update helm
1 parent 6902a94 commit 7cb269f

4 files changed

Lines changed: 43 additions & 0 deletions

File tree

helm/jupyterhub-cost-monitoring/templates/deployment.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@ spec:
3434
{{- with .Values.extraEnv }}
3535
{{- tpl (. | toYaml) $ | nindent 12 }}
3636
{{- end }}
37+
- name: PROMETHEUS_USERNAME
38+
valueFrom:
39+
secretKeyRef:
40+
name: {{ include "jupyterhub-cost-monitoring.webserver.fullname" . }}-auth
41+
key: username
42+
- name: PROMETHEUS_PASSWORD
43+
valueFrom:
44+
secretKeyRef:
45+
name: {{ include "jupyterhub-cost-monitoring.webserver.fullname" . }}-auth
46+
key: password
3747
resources:
3848
{{- .Values.resources | toYaml | nindent 12 }}
3949
securityContext:
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
apiVersion: v1
2+
kind: Secret
3+
metadata:
4+
name: {{ include "jupyterhub-cost-monitoring.fullname" . }}-auth
5+
labels: {{- include "jupyterhub-cost-monitoring.labels" . | nindent 4 }}
6+
type: Opaque
7+
data:
8+
username: {{ .Values.prometheusAuth.username | b64enc }}
9+
password: {{ .Values.prometheusAuth.password | b64enc }}

helm/jupyterhub-cost-monitoring/values.schema.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ required:
2626
- service
2727
- ingress
2828
- networkPolicy
29+
- secrets
2930
properties:
3031
# Flag to conditionally install the chart
3132
# ---------------------------------------------------------------------------
@@ -161,3 +162,18 @@ properties:
161162
properties:
162163
localGrafanaInstances:
163164
type: boolean
165+
166+
# Secrets resource
167+
# -----------------------------------------------------------------------------
168+
#
169+
prometheusAuth:
170+
type: object
171+
additionalProperties: false
172+
properties:
173+
enabled:
174+
type: boolean
175+
username:
176+
type: string
177+
password:
178+
type: string
179+
required: [enabled]

helm/jupyterhub-cost-monitoring/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,11 @@ networkPolicy:
6666
ingress: []
6767
ingressAllowRules:
6868
localGrafanaInstances: true
69+
70+
# Secrets resource
71+
# -----------------------------------------------------------------------------
72+
#
73+
prometheusAuth:
74+
enabled: false
75+
username: ""
76+
password: ""

0 commit comments

Comments
 (0)