Skip to content

Commit 4cd3c64

Browse files
Add hostNetwork configuration to CronJob and Deployment templates, with default value in values.yaml
1 parent ad55ebd commit 4cd3c64

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

kdiff-snapshots/helm-chart/templates/cronjob.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ spec:
2424
labels:
2525
{{- include "kdiff-snapshots.selectorLabels" . | nindent 12 }}
2626
spec:
27+
{{- if .Values.hostNetwork }}
28+
hostNetwork: {{ .Values.hostNetwork }}
29+
{{- end }}
2730
{{- with .Values.imagePullSecrets }}
2831
imagePullSecrets:
2932
{{- toYaml . | nindent 12 }}

kdiff-snapshots/helm-chart/templates/deployments.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ spec:
1818
labels:
1919
{{- include "kdiff-cli.selectorLabels" . | nindent 8 }}
2020
spec:
21+
{{- if .Values.hostNetwork }}
22+
hostNetwork: {{ .Values.hostNetwork }}
23+
{{- end }}
2124
{{- with .Values.imagePullSecrets }}
2225
imagePullSecrets:
2326
{{- toYaml . | nindent 8 }}

kdiff-snapshots/helm-chart/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ containerPort: 9193
3636

3737
# Pod configuration
3838
podAnnotations: {}
39+
hostNetwork: false
3940
podSecurityContext:
4041
fsGroup: 11234
4142

0 commit comments

Comments
 (0)