diff --git a/pkg/cloudprovider/fake/cloudprovider.go b/pkg/cloudprovider/fake/cloudprovider.go index 70cf168a0ad9..fe9dcab42c83 100644 --- a/pkg/cloudprovider/fake/cloudprovider.go +++ b/pkg/cloudprovider/fake/cloudprovider.go @@ -52,7 +52,6 @@ func (c *CloudProvider) Create(ctx context.Context, constraints *v1alpha4.Constr }, Spec: v1.NodeSpec{ ProviderID: fmt.Sprintf("fake:///%s/%s", name, zone), - Taints: constraints.Taints, }, Status: v1.NodeStatus{ NodeInfo: v1.NodeSystemInfo{ diff --git a/pkg/controllers/allocation/controller.go b/pkg/controllers/allocation/controller.go index ad42727d6c10..bf338ea9bd47 100644 --- a/pkg/controllers/allocation/controller.go +++ b/pkg/controllers/allocation/controller.go @@ -134,6 +134,7 @@ func (c *Controller) Reconcile(ctx context.Context, req reconcile.Request) (reco map[string]string{v1alpha4.ProvisionerNameLabelKey: provisioner.Name}, packing.Constraints.Labels, ) + node.Spec.Taints = append(node.Spec.Taints, packing.Constraints.Taints...) return c.Binder.Bind(ctx, node, packing.Pods) }) })