Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ensure OLM bundle installs fine all supported OpenShift Versions
NOTE: this HACK removes the RuntimeDefault seccomProfile from prometheus-operator deployments (opearator and webhook) so that the bundle installs fine on all OpenShift versions >= 4.9. Without this HACK pods fail to be created with the following status error ... --- status: conditions: message: ' pods "obo-prometheus-operator-5864dd8b49-xjs55" is forbidden: unable to validate against any security context constraint: [pod.metadata.annotations.seccomp.security.alpha.kubernetes.io/pod: Forbidden: seccomp may not be set pod.metadata.annotations.container.seccomp.security.alpha.kubernetes.io/prometheus-operator: Forbidden: seccomp may not be set provider "anyuid": Forbidden: not usable by user or serviceaccount pod.metadata.annotations.seccomp.security.alpha.kubernetes.io/pod: Forbidden: seccomp may not be set spec.containers[0].securityContext.runAsUser: Invalid value: 65534: must be in the ranges: [1000410000, 1000419999] pod.metadata.annotations.container.seccomp.security.alpha.kubernetes.io/prometheus-operator: Forbidden: seccomp may not be set provider "hostmount-anyuid": Forbidden: not usable by user or serviceaccount provider "machine-api-termination-handler": Forbidden: not usable by user or serviceaccount provider "hostnetwork": Forbidden: not usable by user or serviceaccount provider "hostaccess": Forbidden: not usable by user or serviceaccount provider "node-exporter": Forbidden: not usable by user or serviceaccount provider "privileged": Forbidden: not usable by user or serviceaccount]' reason: FailedCreate status: "True" type: ReplicaFailure --- Ref: https://issues.redhat.com/browse/MON-3225 Signed-off-by: Sunil Thaha <sthaha@redhat.com>
- Loading branch information