Skip to content

Commit ac6e439

Browse files
committed
fix!(helm): remove prometheus-http port declaration from coderd service spec
1 parent c63f569 commit ac6e439

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed

helm/coder/templates/service.yaml

-19
Original file line numberDiff line numberDiff line change
@@ -28,25 +28,6 @@ spec:
2828
nodePort: {{ .Values.coder.service.httpsNodePort }}
2929
{{ end }}
3030
{{- end }}
31-
{{- range .Values.coder.env }}
32-
{{- if eq .name "CODER_PROMETHEUS_ENABLE" }}
33-
{{/*
34-
This sadly has to be nested to avoid evaluating the second part
35-
of the condition too early and potentially getting type errors if
36-
the value is not a string (like a `valueFrom`). We do not support
37-
`valueFrom` for this env var specifically.
38-
*/}}
39-
{{- if eq .value "true" }}
40-
- name: "prometheus-http"
41-
port: 2112
42-
targetPort: "prometheus-http"
43-
protocol: TCP
44-
{{ if eq $.Values.coder.service.type "NodePort" }}
45-
nodePort: {{ $.Values.coder.service.prometheusNodePort }}
46-
{{ end }}
47-
{{- end }}
48-
{{- end }}
49-
{{- end }}
5031
{{- if eq "LoadBalancer" .Values.coder.service.type }}
5132
{{- with .Values.coder.service.loadBalancerIP }}
5233
loadBalancerIP: {{ . | quote }}

helm/coder/tests/testdata/prometheus.golden

-8
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,6 @@ spec:
9393

9494
nodePort:
9595

96-
97-
- name: "prometheus-http"
98-
port: 2112
99-
targetPort: "prometheus-http"
100-
protocol: TCP
101-
102-
nodePort: 31112
103-
10496
selector:
10597
app.kubernetes.io/name: coder
10698
app.kubernetes.io/instance: release-name

0 commit comments

Comments
 (0)