Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ensure OLM bundle installs fine all supported OpenShift Versions #299

Merged
merged 1 commit into from
Jun 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,6 @@ spec:
securityContext:
runAsNonRoot: true
runAsUser: 65534
seccompProfile:
type: RuntimeDefault
serviceAccountName: obo-prometheus-operator
- label:
app.kubernetes.io/name: prometheus-operator-admission-webhook
Expand Down Expand Up @@ -495,8 +493,6 @@ spec:
securityContext:
runAsNonRoot: true
runAsUser: 65534
seccompProfile:
type: RuntimeDefault
serviceAccountName: obo-prometheus-operator-admission-webhook
- label:
app.kubernetes.io/component: operator
Expand Down
13 changes: 13 additions & 0 deletions deploy/dependencies/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,16 @@ patches:
volumeMounts:
- name: tls-certificates
$patch: delete

# HACK: remove the RuntimeDefault from ALL deploymens until we figure out
# how to run the operator on all openshift version from 4.9-13. Currently the
# webhook fails to deploy on 4.10
# SEE: https://issues.redhat.com/browse/MON-3225 which should provide an actual fix
- patch: |-
- op: remove
path: /spec/template/spec/securityContext/seccompProfile
target:
group: apps
version: v1
kind: Deployment
name: '.*'