From 4cff34edd1e0c578daa2935bbc273e842d485f5b Mon Sep 17 00:00:00 2001 From: Brandon Date: Thu, 23 Sep 2021 10:09:06 -0500 Subject: [PATCH 1/2] add provisioner taints to nodes --- pkg/controllers/allocation/controller.go | 1 + 1 file changed, 1 insertion(+) 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) }) }) From 4ad7a91b41db411d7645bfbb688aab7b27d0ccf4 Mon Sep 17 00:00:00 2001 From: Brandon Date: Thu, 23 Sep 2021 13:18:55 -0500 Subject: [PATCH 2/2] cloudprovider mock should not add taints --- pkg/cloudprovider/fake/cloudprovider.go | 1 - 1 file changed, 1 deletion(-) 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{