Skip to content

Commit bfcd6e6

Browse files
committed
[occm] Make hostNetwork configurable in the Helm chart
1 parent 57e8d5d commit bfcd6e6

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

charts/openstack-cloud-controller-manager/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Openstack Cloud Controller Manager Helm Chart
44
icon: https://object-storage-ca-ymq-1.vexxhost.net/swift/v1/6e4619c416ff4bd19e1c087f27a43eea/www-images-prod/openstack-logo/OpenStack-Logo-Vertical.png
55
home: https://github.com/kubernetes/cloud-provider-openstack
66
name: openstack-cloud-controller-manager
7-
version: 2.35.0
7+
version: 2.35.1
88
maintainers:
99
- name: eumel8
1010
email: f.kloeker@telekom.de

charts/openstack-cloud-controller-manager/templates/daemonset.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ spec:
109109
{{- if .Values.extraInitContainers }}
110110
initContainers: {{ toYaml .Values.extraInitContainers | nindent 6 }}
111111
{{- end }}
112-
dnsPolicy: {{ .Values.dnsPolicy }}
113-
hostNetwork: true
112+
hostNetwork: {{ .Values.hostNetwork }}
113+
dnsPolicy: {{ if and .Values.hostNetwork (eq .Values.dnsPolicy "ClusterFirst") }}ClusterFirstWithHostNet{{ else }}{{ .Values.dnsPolicy }}{{ end }}
114114
{{- if .Values.priorityClassName }}
115115
priorityClassName: {{ .Values.priorityClassName }}
116116
{{- end }}

charts/openstack-cloud-controller-manager/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ livenessProbe: {}
4646
# Set readinessProbe in the same way like livenessProbe
4747
readinessProbe: {}
4848

49+
# Use host network for the controller pods. This is required if the controller
50+
# needs to access the node network (e.g. for cloud-node or route controllers),
51+
# but can be disabled if you only need specific controllers like the service
52+
# (Octavia LB) controller.
53+
hostNetwork: true
54+
4955
dnsPolicy: ClusterFirst
5056

5157
# Set nodeSelector where the controller should run, i.e. controlplane nodes

0 commit comments

Comments
 (0)