Skip to content

Commit

Permalink
Add assign-oauth-image gatekeeper policy (#6)
Browse files Browse the repository at this point in the history
This allows the rhods oauth container to pull oauth image from internal registry rather than externally.

Relevant issue: nerc-project/operations#506

Signed-off-by: Isaiah Stapleton <[email protected]>
  • Loading branch information
IsaiahStapleton authored Jun 11, 2024
1 parent 0efab41 commit a98da6f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions policy/overlays/nerc-ocp-prod/use-internal-oauth-proxy-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: mutations.gatekeeper.sh/v1alpha1
kind: AssignImage
metadata:
name: use-internal-oauth-proxy-image
spec:
applyTo:
- groups: [""]
kinds: ["Pod"]
versions: ["v1"]
location: "spec.containers[name:oauth-proxy].image"
parameters:
assignDomain: "image-registry.openshift-image-registry.svc:5000"
assignPath: "redhat-ods-applications/oauth-proxy"
assignTag: ":latest"
match:
source: "All"
scope: Namespaced
kinds:
- apiGroups: ["*"]
kinds: ["Pod"]
namespaces: ["rhods-notebooks"]
name: jupyter-nb*

0 comments on commit a98da6f

Please sign in to comment.