Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a19c6fc commit 88d3496Copy full SHA for 88d3496
helm/templates/coder.yaml
@@ -89,12 +89,20 @@ spec:
89
protocol: TCP
90
{{- end }}
91
{{- range .Values.coder.env }}
92
- {{- if and (eq .name "CODER_PROMETHEUS_ENABLE") (eq .value "true") }}
+ {{- if eq .name "CODER_PROMETHEUS_ENABLE" }}
93
+ {{/*
94
+ This sadly has to be nested to avoid evaluating the second part
95
+ of the condition too early and potentially getting type errors if
96
+ the value is not a string (like a `valueFrom`). We do not support
97
+ `valueFrom` for this env var specifically.
98
+ */}}
99
+ {{- if eq .value "true" }}
100
- name: "prometheus-http"
101
containerPort: 6060
102
103
104
105
+ {{- end }}
106
readinessProbe:
107
httpGet:
108
path: /api/v2/buildinfo
0 commit comments