Skip to content

Commit

Permalink
Relax pod admission controls when using a local catalog index
Browse files Browse the repository at this point in the history
  • Loading branch information
csibbitt committed Sep 8, 2023
1 parent cd216c0 commit b44a54e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
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 @@ -140,6 +140,8 @@
image: "{{ stf_index_image_path }}"
publisher: CloudOps
sourceType: grpc
grpcPodConfig:
securityContextConfig: legacy
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 @@ -107,6 +107,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
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

0 comments on commit b44a54e

Please sign in to comment.