Merge "Changes in dex function to work for both target cluster as well as sub-clusters along with few enhancements"

This commit is contained in:
Zuul 2021-05-22 14:15:35 +00:00 committed by Gerrit Code Review
commit ee9403fb1c
3 changed files with 5 additions and 24 deletions

View File

@ -1,8 +1,7 @@
apiVersion: cert-manager.io/v1alpha2
kind: Issuer
metadata:
name: workload-cluster-ca-issuer
namespace: default
name: dex
spec:
ca:
secret: dex-apiserver-secret
secretName: dex-apiserver-secret

View File

@ -1,18 +1,3 @@
apiVersion: v1
kind: Namespace
metadata:
name: dex
---
# Dex Helm Charts from Helm Repository (Helm Collator)
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmRepository
metadata:
name: dex-helm-repo
namespace: collator
spec:
interval: 5m
url: http://helm-chart-collator.collator.svc:8080
---
# Dex Helm Charts from Git Repository
# apiVersion: source.toolkit.fluxcd.io/v1beta1
# kind: GitRepository
@ -29,10 +14,7 @@ apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: dex-aio
namespace: default
spec:
releaseName: dex-aio
targetNamespace: dex
interval: 5m
chart:
spec:
@ -40,7 +22,7 @@ spec:
# Referencing Dex Helm charts from Helm Collator repo
sourceRef:
kind: HelmRepository
name: dex-helm-repo
name: helm-repo
namespace: collator
# Referencing Dex Helm charts from Git repo
# sourceRef:
@ -60,7 +42,7 @@ spec:
tls:
cert_manager: true
issuer:
name: workload-cluster-ca-issuer
name: dex
kind: Issuer
oidc:
client_id: function-kubernetes

View File

@ -2,5 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- dex-cert-issuer.yaml
- dex-helmrelease.yaml
- dex-cert-issuer.yaml