Skip to content

Commit

Permalink
Fixes dex for kustomize 5 (#2586)
Browse files Browse the repository at this point in the history
* Fixes user-namespace for kustomize 5

* Fixes dex for kustomize 5
  • Loading branch information
alekseyolg authored Jan 2, 2024
1 parent 19c4dc2 commit ed4caf3
Showing 1 changed file with 30 additions and 16 deletions.
46 changes: 30 additions & 16 deletions common/dex/overlays/istio/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,40 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../base
- virtual-service.yaml

namespace: auth

vars:
- name: DEX_SERVICE
objref:
configurations:
- params.yaml
replacements:
- source:
fieldPath: metadata.name
kind: Service
name: dex
apiVersion: v1
fieldref:
fieldpath: metadata.name
- name: DEX_NAMESPACE
objref:
version: v1
targets:
- fieldPaths:
- spec.http.0.route.0.destination.host
options:
delimiter: .
select:
group: networking.istio.io
kind: VirtualService
name: dex
version: v1alpha3
- source:
fieldPath: metadata.namespace
kind: Service
name: dex
apiVersion: v1
fieldref:
fieldpath: metadata.namespace
configurations:
- params.yaml
version: v1
targets:
- fieldPaths:
- spec.http.0.route.0.destination.host
options:
delimiter: .
index: 1
select:
group: networking.istio.io
kind: VirtualService
name: dex
version: v1alpha3

0 comments on commit ed4caf3

Please sign in to comment.