diff --git a/install/0000_80_machine-config-operator_00_namespace.yaml b/install/0000_80_machine-config-operator_00_namespace.yaml index a27ad71517..9cedcaecbd 100644 --- a/install/0000_80_machine-config-operator_00_namespace.yaml +++ b/install/0000_80_machine-config-operator_00_namespace.yaml @@ -10,7 +10,7 @@ metadata: workload.openshift.io/allowed: "management" labels: name: openshift-machine-config-operator - openshift.io/run-level: "1" + openshift.io/run-level: "" # specify no run-level turns it off on install and upgrades openshift.io/cluster-monitoring: "true" pod-security.kubernetes.io/enforce: privileged pod-security.kubernetes.io/audit: privileged diff --git a/manifests/machineconfigdaemon/clusterrole.yaml b/manifests/machineconfigdaemon/clusterrole.yaml index 5ce7f01003..6dc102c6c2 100644 --- a/manifests/machineconfigdaemon/clusterrole.yaml +++ b/manifests/machineconfigdaemon/clusterrole.yaml @@ -22,6 +22,10 @@ rules: - apiGroups: ["machineconfiguration.openshift.io"] resources: ["machineconfigs"] verbs: ["*"] +- apiGroups: ["security.openshift.io"] + resourceNames: ["privileged"] + resources: ["securitycontextconstraints"] + verbs: ["use"] - apiGroups: - authentication.k8s.io resources: diff --git a/manifests/machineconfigserver/clusterrole.yaml b/manifests/machineconfigserver/clusterrole.yaml index a5bf7e869f..f345261f2f 100644 --- a/manifests/machineconfigserver/clusterrole.yaml +++ b/manifests/machineconfigserver/clusterrole.yaml @@ -7,3 +7,7 @@ rules: - apiGroups: ["machineconfiguration.openshift.io"] resources: ["machineconfigs", "machineconfigpools"] verbs: ["*"] +- apiGroups: ["security.openshift.io"] + resourceNames: ["hostnetwork"] + resources: ["securitycontextconstraints"] + verbs: ["use"] diff --git a/pkg/operator/assets/bindata.go b/pkg/operator/assets/bindata.go index 38e7572eb3..a3d1aae93e 100644 --- a/pkg/operator/assets/bindata.go +++ b/pkg/operator/assets/bindata.go @@ -1391,6 +1391,10 @@ rules: - apiGroups: ["machineconfiguration.openshift.io"] resources: ["machineconfigs"] verbs: ["*"] +- apiGroups: ["security.openshift.io"] + resourceNames: ["privileged"] + resources: ["securitycontextconstraints"] + verbs: ["use"] - apiGroups: - authentication.k8s.io resources: @@ -1722,6 +1726,10 @@ rules: - apiGroups: ["machineconfiguration.openshift.io"] resources: ["machineconfigs", "machineconfigpools"] verbs: ["*"] +- apiGroups: ["security.openshift.io"] + resourceNames: ["hostnetwork"] + resources: ["securitycontextconstraints"] + verbs: ["use"] `) func manifestsMachineconfigserverClusterroleYamlBytes() ([]byte, error) {