Skip to content

Commit

Permalink
drop runlevel annotations (#204)
Browse files Browse the repository at this point in the history
Fixing BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1847594

We should not sneak into the restricted space.

Signed-off-by: Petr Horacek <[email protected]>
  • Loading branch information
phoracek authored Jun 22, 2020
1 parent 15dba19 commit f491b8a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
6 changes: 3 additions & 3 deletions config/default/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions config/release/kubemacpool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions config/test/kubemacpool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/pool-manager/pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
})
Expand Down

0 comments on commit f491b8a

Please sign in to comment.