@@ -65,6 +65,7 @@ const (
6565 FeaturePodSpecHostNetwork = "kubernetes.podspec-hostnetwork"
6666 FeaturePodSpecHostPID = "kubernetes.podspec-hostpid"
6767 FeaturePodSpecHostPath = "kubernetes.podspec-volumes-hostpath"
68+ FeaturePodSpecCSI = "kubernetes.podspec-volumes-csi"
6869 FeaturePodSpecInitContainers = "kubernetes.podspec-init-containers"
6970 FeaturePodSpecNodeSelector = "kubernetes.podspec-nodeselector"
7071 FeaturePodSpecPVClaim = "kubernetes.podspec-persistent-volume-claim"
@@ -99,6 +100,7 @@ func defaultFeaturesConfig() *Features {
99100 PodSpecTolerations : Disabled ,
100101 PodSpecVolumesEmptyDir : Enabled ,
101102 PodSpecVolumesHostPath : Disabled ,
103+ PodSpecVolumesCSI : Disabled ,
102104 PodSpecPersistentVolumeClaim : Disabled ,
103105 PodSpecPersistentVolumeWrite : Disabled ,
104106 QueueProxyMountPodInfo : Disabled ,
@@ -137,6 +139,7 @@ func NewFeaturesConfigFromMap(data map[string]string) (*Features, error) {
137139 asFlag (FeaturePodSpecHostNetwork , & nc .PodSpecHostNetwork ),
138140 asFlag (FeaturePodSpecHostPID , & nc .PodSpecHostPID ),
139141 asFlag (FeaturePodSpecHostPath , & nc .PodSpecVolumesHostPath ),
142+ asFlag (FeaturePodSpecCSI , & nc .PodSpecVolumesCSI ),
140143 asFlag (FeaturePodSpecInitContainers , & nc .PodSpecInitContainers ),
141144 asFlag (FeaturePodSpecNodeSelector , & nc .PodSpecNodeSelector ),
142145 asFlag (FeaturePodSpecPVClaim , & nc .PodSpecPersistentVolumeClaim ),
@@ -180,6 +183,7 @@ type Features struct {
180183 PodSpecTolerations Flag
181184 PodSpecVolumesEmptyDir Flag
182185 PodSpecVolumesHostPath Flag
186+ PodSpecVolumesCSI Flag
183187 PodSpecInitContainers Flag
184188 PodSpecPersistentVolumeClaim Flag
185189 PodSpecPersistentVolumeWrite Flag
0 commit comments