diff --git a/config/default/manager/manager.yaml b/config/default/manager/manager.yaml index 1f128a84a..f31316c45 100644 --- a/config/default/manager/manager.yaml +++ b/config/default/manager/manager.yaml @@ -3,9 +3,9 @@ kind: Namespace metadata: labels: control-plane: mac-controller-manager - controller-tools.k8s.io: "1.0" - runlevel: "0" - openshift.io/run-level: "0" + # Make sure that KubeMacPool pods are never handled by the webhook to + # prevent dead-lock. + mutatepods.kubemacpool.io: ignore name: system --- apiVersion: v1 diff --git a/config/release/kubemacpool.yaml b/config/release/kubemacpool.yaml index cf15abacf..a6fb484ae 100644 --- a/config/release/kubemacpool.yaml +++ b/config/release/kubemacpool.yaml @@ -3,9 +3,7 @@ kind: Namespace metadata: labels: control-plane: mac-controller-manager - controller-tools.k8s.io: "1.0" - openshift.io/run-level: "0" - runlevel: "0" + mutatepods.kubemacpool.io: ignore name: kubemacpool-system --- apiVersion: admissionregistration.k8s.io/v1beta1 diff --git a/config/test/kubemacpool.yaml b/config/test/kubemacpool.yaml index 4992e2c6c..1116bfca0 100644 --- a/config/test/kubemacpool.yaml +++ b/config/test/kubemacpool.yaml @@ -3,9 +3,7 @@ kind: Namespace metadata: labels: control-plane: mac-controller-manager - controller-tools.k8s.io: "1.0" - openshift.io/run-level: "0" - runlevel: "0" + mutatepods.kubemacpool.io: ignore name: kubemacpool-system --- apiVersion: admissionregistration.k8s.io/v1beta1 diff --git a/pkg/pool-manager/pool_test.go b/pkg/pool-manager/pool_test.go index f7b9405cf..d78fdfe34 100644 --- a/pkg/pool-manager/pool_test.go +++ b/pkg/pool-manager/pool_test.go @@ -402,7 +402,7 @@ var _ = Describe("Pool", func() { By("checking the configmap is updated with mac allocated") macAddressInConfigMapFormat := strings.Replace(allocatedMac, ":", "-", 5) - Expect(configMap.Data).To(HaveLen(1),"configmap should hold the mac address waiting for approval") + Expect(configMap.Data).To(HaveLen(1), "configmap should hold the mac address waiting for approval") _, exist := configMap.Data[macAddressInConfigMapFormat] Expect(exist).To(Equal(true), "should have an entry of the mac in the configmap") })