We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 453b734 + 83bf276 commit 2ffd5b1Copy full SHA for 2ffd5b1
controllers/syncer/csi_node.go
@@ -91,9 +91,11 @@ func (s *csiNodeSyncer) ensurePodSpec() corev1.PodSpec {
91
Containers: s.ensureContainersSpec(),
92
Volumes: s.ensureVolumes(),
93
SecurityContext: &corev1.PodSecurityContext{
94
- RunAsNonRoot: func(b bool) *bool { return &b }(true),
+ RunAsNonRoot: util.True(),
95
RunAsUser: func(uid int64) *int64 { return &uid }(2121),
96
},
97
+ Affinity: s.driver.Spec.Node.Affinity,
98
+ Tolerations: s.driver.Spec.Node.Tolerations,
99
ServiceAccountName: constants.GetResourceName(constants.CSINodeServiceAccount),
100
PriorityClassName: constants.CSINodePriorityClassName,
101
}
0 commit comments