Skip to content

Commit

Permalink
Add assign-oauth-image gatekeeper policy
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 <istaplet@redhat.com>
  • Loading branch information
IsaiahStapleton committed Jun 11, 2024
1 parent 0efab41 commit db40d05
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 db40d05

Please sign in to comment.