Skip to content

Commit bedc8a2

Browse files
refactor(grafana): update secret name to include full name and remove hardcoded admin password
1 parent ee896ef commit bedc8a2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

infra/helm/skillForgeAi/templates/monitoring/grafana/grafana-deployment.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ spec:
2121
checksum/config: "{{ randAlphaNum 8 }}"
2222
checksum/datasources: "{{ randAlphaNum 8 }}"
2323
checksum/dashboards: "{{ randAlphaNum 8 }}"
24+
checksum/secret: "{{ randAlphaNum 8 }}"
2425
spec:
2526
securityContext:
2627
fsGroup: 472
@@ -41,12 +42,12 @@ spec:
4142
- name: GF_SECURITY_ADMIN_USER
4243
valueFrom:
4344
secretKeyRef:
44-
name: grafana-secret
45+
name: {{ include "skillForgeAi.fullname" . }}-grafana-secret
4546
key: adminUser
4647
- name: GF_SECURITY_ADMIN_PASSWORD
4748
valueFrom:
4849
secretKeyRef:
49-
name: grafana-secret
50+
name: {{ include "skillForgeAi.fullname" . }}-grafana-secret
5051
key: adminPassword
5152
- name: GF_FEATURE_TOGGLES_ENABLE
5253
value: "publicDashboards"

infra/helm/skillForgeAi/templates/monitoring/grafana/grafana-secret.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: v1
33
kind: Secret
44
metadata:
5-
name: grafana-secret
5+
name: {{ include "skillForgeAi.fullname" . }}-grafana-secret
66
labels:
77
{{- include "skillForgeAi.labels" . | nindent 4 }}
88
component: grafana

infra/helm/skillForgeAi/values.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ monitoring:
150150
tag: "latest"
151151
pullPolicy: IfNotPresent
152152
port: 3000
153-
adminPassword: "admin"
154153
resources:
155154
requests:
156155
cpu: 100m

0 commit comments

Comments
 (0)