Skip to content
Snippets Groups Projects
Verified Commit 98ae7dd9 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

feat(shared): Add automatic Ingress patching to oauth2-proxy component

This patch adjusts the component for oauth2-proxy to also include a
patching mechism for all kustomize-defined Ingress objects to be
restricted.
parent 68a13ef0
No related branches found
No related tags found
No related merge requests found
- op: add
path: /metadata/annotations/nginx.ingress.kubernetes.io~1auth-response-headers
value: Authorization
- op: add
path: /metadata/annotations/nginx.ingress.kubernetes.io~1auth-url
value: https://$host/oauth2/auth
- op: add
path: /metadata/annotations/nginx.ingress.kubernetes.io~1auth-signin
value: https://$host/oauth2/start?rd=$escaped_request_uri
\ No newline at end of file
...@@ -6,4 +6,12 @@ resources: ...@@ -6,4 +6,12 @@ resources:
- secret.yaml - secret.yaml
- repository.yaml - repository.yaml
- release.yaml - release.yaml
- networkpolicy.yaml - networkpolicy.yaml
\ No newline at end of file
patches:
- path: ingress-patch.yaml
target:
group: networking.k8s.io
version: v1
kind: Ingress
annotationSelector: "oauth2-proxy.kustomize.si-infra.de/exclude-ingress!=true"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment