feat: add METRICS_ENABLED and PROBES_ENABLED environment variables to deployment configurations

Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
zhenyus 2025-03-17 22:37:27 +08:00
parent 98bb323798
commit 368c726b0b
5 changed files with 55 additions and 5 deletions

View File

@ -92,4 +92,14 @@ spec:
secretKeyRef:
name: authentication-config
key: {{ $key | snakecase | upper }}
{{- end }}
{{- end }}
- name: METRICS_ENABLED
valueFrom:
secretKeyRef:
name: authentication-config
key: METRICS_ENABLED
- name: PROBES_ENABLED
valueFrom:
secretKeyRef:
name: authentication-config
key: PROBES_ENABLED

View File

@ -92,4 +92,14 @@ spec:
secretKeyRef:
name: central-storage-config
key: {{ $key | snakecase | upper }}
{{- end }}
{{- end }}
- name: METRICS_ENABLED
valueFrom:
secretKeyRef:
name: authentication-config
key: METRICS_ENABLED
- name: PROBES_ENABLED
valueFrom:
secretKeyRef:
name: authentication-config
key: PROBES_ENABLED

View File

@ -92,4 +92,14 @@ spec:
secretKeyRef:
name: content-config
key: {{ $key | snakecase | upper }}
{{- end }}
{{- end }}
- name: METRICS_ENABLED
valueFrom:
secretKeyRef:
name: authentication-config
key: METRICS_ENABLED
- name: PROBES_ENABLED
valueFrom:
secretKeyRef:
name: authentication-config
key: PROBES_ENABLED

View File

@ -92,4 +92,14 @@ spec:
secretKeyRef:
name: notification-config
key: {{ $key | snakecase | upper }}
{{- end }}
{{- end }}
- name: METRICS_ENABLED
valueFrom:
secretKeyRef:
name: authentication-config
key: METRICS_ENABLED
- name: PROBES_ENABLED
valueFrom:
secretKeyRef:
name: authentication-config
key: PROBES_ENABLED

View File

@ -92,4 +92,14 @@ spec:
secretKeyRef:
name: payment-config
key: {{ $key | snakecase | upper }}
{{- end }}
{{- end }}
- name: METRICS_ENABLED
valueFrom:
secretKeyRef:
name: authentication-config
key: METRICS_ENABLED
- name: PROBES_ENABLED
valueFrom:
secretKeyRef:
name: authentication-config
key: PROBES_ENABLED