Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/featureflag/featureflag.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ var (
ImageDigest = new("ImageDigest", Bool(true))
// Scaleway toggles the Scaleway Cloud support.
Scaleway = new("Scaleway", Bool(false))
// SELinuxMount configures AWS EBS CSI driver for SELinuxMount support.
// SELinuxMount configures AWS EBS and GCE PD CSI drivers for SELinuxMount support.
// It expects than Kubernetes feature gate SELinuxMountReadWriteOncePod is
// enabled or GA in the API server, KCM and kubelet.
// OS with SELinux support on all nodes is recommended, but not required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,10 @@ spec:
name: udev-socket
- mountPath: /sys
name: sys
{{ if KopsFeatureEnabled "SELinuxMount" }}
- name: etc-selinux
mountPath: /etc/selinux
{{ end }}
hostNetwork: true
nodeSelector: null
priorityClassName: csi-gce-pd-node
Expand Down Expand Up @@ -706,6 +710,12 @@ spec:
path: /sys
type: Directory
name: sys
{{ if KopsFeatureEnabled "SELinuxMount" }}
- name: etc-selinux
hostPath:
path: /etc/selinux
type: DirectoryOrCreate
{{ end }}
---
apiVersion: storage.k8s.io/v1
kind: CSIDriver
Expand All @@ -714,3 +724,6 @@ metadata:
spec:
attachRequired: true
podInfoOnMount: false
{{ if KopsFeatureEnabled "SELinuxMount" }}
seLinuxMount: true
{{ end }}