Skip to content

Commit

Permalink
Improve dex kustomizations readability (#2590)
Browse files Browse the repository at this point in the history
The overlays for ldap and github were not taken into consideration because atm they don't work
because the dex's base kustimization doesn't define dex-parameters anymore.
  • Loading branch information
kromanow94 authored Jan 3, 2024
1 parent ed4caf3 commit 6c80eb2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 2 additions & 0 deletions common/dex/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: auth

resources:
- namespace.yaml
- config-map.yaml
- crds.yaml
- deployment.yaml
- service.yaml
- dex-passwords.yaml

generatorOptions:
disableNameSuffixHash: true

Expand Down
13 changes: 8 additions & 5 deletions common/dex/overlays/istio/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,30 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: auth

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

configurations:
- params.yaml

replacements:
- source:
fieldPath: metadata.name
version: v1
kind: Service
name: dex
version: v1
fieldPath: metadata.name
targets:
- fieldPaths:
- spec.http.0.route.0.destination.host
options:
delimiter: .
select:
version: v1alpha3
group: networking.istio.io
kind: VirtualService
name: dex
version: v1alpha3
- source:
fieldPath: metadata.namespace
kind: Service
Expand All @@ -34,7 +37,7 @@ replacements:
delimiter: .
index: 1
select:
version: v1alpha3
group: networking.istio.io
kind: VirtualService
name: dex
version: v1alpha3

0 comments on commit 6c80eb2

Please sign in to comment.