Skip to content

Commit

Permalink
use-internal-oauth-proxy-image will only apply to pods that have an o…
Browse files Browse the repository at this point in the history
…auth-proxy container already present (#10)

Currently the use-internal-oauth-proxy-image policy will apply to all pods even if they don't have an oauth-proxy container.
This leads to issues with pods created from sources other than RHOAI since it tries to pull the oauth-proxy image when it
should not be. This PR will make it so this policy only applies to pods with an oauth-proxy container already present.

Signed-off-by: Isaiah Stapleton <istaplet@redhat.com>
  • Loading branch information
IsaiahStapleton authored Sep 26, 2024
1 parent 1258780 commit 8e75bcd
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ spec:
assignDomain: "image-registry.openshift-image-registry.svc:5000"
assignPath: "redhat-ods-applications/oauth-proxy"
assignTag: ":latest"
pathTests:
- subPath: "spec.containers[name:oauth-proxy].image"
condition: MustExist
match:
source: "All"
scope: Namespaced
kinds:
- apiGroups: ["*"]
kinds: ["Pod"]
namespaces: ["rhods-notebooks", "ope-rhods-testing-1fef2f"]
namespaces: ["rhods-notebooks"]

0 comments on commit 8e75bcd

Please sign in to comment.