Skip to content

Commit

Permalink
fix(CSI-241): make controllerServer also use hostNetwork for NFS
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyberezansky committed Sep 12, 2024
1 parent 1567dba commit 3c57498
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ metadata:

allowPrivilegedContainer: true
allowHostDirVolumePlugin: true
{{- if .Values.hostNetwork }}
{{- if or .Values.hostNetwork .Values.pluginConfig.mountProtocol.allowNfsFailback .Values.pluginConfig.mountProtocol.useNfs }}
allowHostNetwork: true
{{- end }}
allowedVolumeTypes:
- hostPath
- secret
readOnlyRootFilesystem: false

allowHostPorts: true
runAsUser:
type: RunAsAny
seLinuxContext:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ spec:
nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8}}
{{- end }}
serviceAccountName: {{ .Release.Name }}-controller
{{- if .Values.hostNetwork }}
hostNetwork: {{ .Values.hostNetwork }}
{{- if or .Values.hostNetwork .Values.pluginConfig.mountProtocol.useNfs .Values.pluginConfig.mountProtocol.allowNfsFailback}}
hostNetwork: true
{{- end }}
containers:
- name: csi-attacher
Expand Down

0 comments on commit 3c57498

Please sign in to comment.