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

Relax pod admission controls when using a local catalog index #450

2 changes: 2 additions & 0 deletions build/stf-run-ci/tasks/create_catalog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@
image: "{{ stf_index_image_path }}"
publisher: CloudOps
sourceType: grpc
grpcPodConfig:
securityContextConfig: legacy
Comment on lines +145 to +146
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻

updateStrategy:
registryPoll:
interval: 1m
14 changes: 14 additions & 0 deletions build/stf-run-ci/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,20 @@
tags:
- deploy

- when: __deploy_from_index_enabled | bool or __deploy_from_bundles_enabled | bool
name: Relax the pod security admission controls to allow local catalog index registry pods
kubernetes.core.k8s:
definition:
apiVersion: v1
kind: Namespace
metadata:
name: "{{ namespace }}"
labels:
security.openshift.io/scc.podSecurityLabelSync: "false"
pod-security.kubernetes.io/enforce: baseline
pod-security.kubernetes.io/audit: restricted
pod-security.kubernetes.io/warn: restricted

- when: __deploy_from_index_enabled | bool
tags:
- create_bundles
Expand Down