Skip to content

Commit

Permalink
Split istio-external-auth into two components (#2670)
Browse files Browse the repository at this point in the history
First component contains only the patches. This is meant to be used from
the istio deployment.

The second component contains the AuthorizationPolicy and RequestAuthentication,
which must always be deployed when oauth2-proxy is deployed, so it doesn't
make sense to pull these in from the istio oauth2-proxy overlay.

Signed-off-by: Alexander Block <ablock84@gmail.com>
  • Loading branch information
codablock authored May 2, 2024
1 parent 61f1e61 commit 0aedaaf
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ resources:
- ../../base

components:
- ../../../../oidc-client/oauth2-proxy/components/istio-external-auth
- ../../../../oidc-client/oauth2-proxy/components/istio-external-auth-patches
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ resources:
- ../../base

components:
- ../../../../oidc-client/oauth2-proxy/components/istio-external-auth
- ../../../../oidc-client/oauth2-proxy/components/istio-external-auth-patches
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component

patches:
- path: patches/cm.enable-oauth2-proxy.yaml
- path: patches/deployment.jwt-refresh-interval.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,3 @@ resources:
# authorizationpolicy.istio-ingressgateway-oauth2-proxy-cloudflare.yaml
# instead of
# authorizationpolicy.istio-ingressgateway-oauth2-proxy.yaml

patches:
- path: patches/cm.enable-oauth2-proxy.yaml
- path: patches/deployment.jwt-refresh-interval.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ resources:

components:
- ../../components/istio-m2m
- ../../components/istio-external-auth
- ../../components/allow-unauthenticated-issuer-discovery
- ../../components/configure-self-signed-kubernetes-oidc-issuer

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ resources:

components:
- ../../components/istio-m2m
- ../../components/istio-external-auth
- component-overwrite-m2m-token-issuer

configMapGenerator:
Expand Down

0 comments on commit 0aedaaf

Please sign in to comment.