Skip to content

Commit

Permalink
fix: wggateway template ports when metrics not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
fra98 authored and adamjensenbot committed Jan 31, 2025
1 parent 95890f0 commit d03e24a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ spec:
volumeMounts:
- name: ipc
mountPath: /ipc
{{- if .Values.metrics.enabled }}
ports:
{{- if .Values.metrics.enabled }}
- containerPort: 8082
name: gw-metrics
{{- end }}
Expand Down Expand Up @@ -120,8 +120,8 @@ spec:
{{- end }}
- --health-probe-bind-address=:8085
- --implementation={{ .Values.networking.gatewayTemplates.wireguard.implementation }}
{{- if .Values.metrics.enabled }}
ports:
{{- if .Values.metrics.enabled }}
- containerPort: 8084
name: wg-metrics
{{- end }}
Expand Down Expand Up @@ -166,8 +166,8 @@ spec:
volumeMounts:
- name: ipc
mountPath: /ipc
{{- if .Values.metrics.enabled }}
ports:
{{- if .Values.metrics.enabled }}
- containerPort: 8086
name: gv-metrics
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,11 @@ spec:
volumeMounts:
- name: ipc
mountPath: /ipc
{{- if .Values.metrics.enabled }}
ports:
{{- if .Values.metrics.enabled }}
- containerPort: 8082
name: gw-metrics
{{- end }}
ports:
- containerPort: 8083
name: healthz
# ATTENTION: uncomment the readinessProbe section if you are aware of the consequences.
Expand Down Expand Up @@ -147,12 +146,11 @@ spec:
{{- end }}
- --health-probe-bind-address=:8085
- --implementation={{ .Values.networking.gatewayTemplates.wireguard.implementation }}
{{- if .Values.metrics.enabled }}
ports:
{{- if .Values.metrics.enabled }}
- containerPort: 8084
name: wg-metrics
{{- end }}
ports:
- containerPort: 8085
name: healthz
# ATTENTION: uncomment the readinessProbe section if you are aware of the consequences.
Expand Down Expand Up @@ -194,12 +192,11 @@ spec:
volumeMounts:
- name: ipc
mountPath: /ipc
{{- if .Values.metrics.enabled }}
ports:
{{- if .Values.metrics.enabled }}
- containerPort: 8086
name: gv-metrics
{{- end }}
ports:
- containerPort: 8087
name: healthz
# ATTENTION: uncomment the readinessProbe section if you are aware of the consequences.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ spec:
volumeMounts:
- name: ipc
mountPath: /ipc
{{- if .Values.metrics.enabled }}
ports:
{{- if .Values.metrics.enabled }}
- containerPort: 8082
name: gw-metrics
{{- end }}
Expand Down Expand Up @@ -139,8 +139,8 @@ spec:
{{- end }}
- --health-probe-bind-address=:8085
- --implementation={{ .Values.networking.gatewayTemplates.wireguard.implementation }}
{{- if .Values.metrics.enabled }}
ports:
{{- if .Values.metrics.enabled }}
- containerPort: 8084
name: wg-metrics
{{- end }}
Expand Down Expand Up @@ -185,8 +185,8 @@ spec:
volumeMounts:
- name: ipc
mountPath: /ipc
{{- if .Values.metrics.enabled }}
ports:
{{- if .Values.metrics.enabled }}
- containerPort: 8086
name: gv-metrics
{{- end }}
Expand Down

0 comments on commit d03e24a

Please sign in to comment.