Skip to content

Commit 1864a41

Browse files
authored
Merge pull request #346 from danielrutledgebrinker/main
Daemon Sets use Driver Plugin Spec Affinity
2 parents 0b2704e + d2971b5 commit 1864a41

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/controller/driver_controller.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,6 +1127,7 @@ func (r *driverReconcile) reconcileNodePluginDaemonSetForCsiAddons() error {
11271127
// resolved through k8s service, set dns policy to cluster first
11281128
DNSPolicy: corev1.DNSClusterFirstWithHostNet,
11291129
Tolerations: pluginSpec.Tolerations,
1130+
Affinity: pluginSpec.Affinity,
11301131
Containers: utils.Call(func() []corev1.Container {
11311132
containers := []corev1.Container{
11321133
{
@@ -1302,6 +1303,7 @@ func (r *driverReconcile) reconcileNodePluginDaemonSet() error {
13021303
// resolved through k8s service, set dns policy to cluster first
13031304
DNSPolicy: corev1.DNSClusterFirstWithHostNet,
13041305
Tolerations: pluginSpec.Tolerations,
1306+
Affinity: pluginSpec.Affinity,
13051307
Containers: utils.Call(func() []corev1.Container {
13061308
containers := []corev1.Container{
13071309
// Node Plugin Container

0 commit comments

Comments
 (0)