From a03ceff8b16caf2cb597ff31eea321e1f525f0ed Mon Sep 17 00:00:00 2001 From: Michael Kasch Date: Wed, 10 Jul 2024 12:10:07 +0200 Subject: [PATCH] Prepare namespace for oidc --- deployments/deployments.yaml | 19 +++++++++++++++++++ deployments/oidc/oidc.yaml | 23 +++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 deployments/oidc/oidc.yaml diff --git a/deployments/deployments.yaml b/deployments/deployments.yaml index fb7c0ce..c252cfa 100644 --- a/deployments/deployments.yaml +++ b/deployments/deployments.yaml @@ -16,3 +16,22 @@ spec: automated: prune: true selfHeal: true +--- +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: oidc + namespace: argocd +spec: + source: + repoURL: git@github.com:MyChaOS87/sloth.git + targetRevision: main + path: deployments/oidc + destination: + server: https://kubernetes.default.svc + namespace: argocd + project: argocd-base + syncPolicy: + automated: + prune: true + selfHeal: true diff --git a/deployments/oidc/oidc.yaml b/deployments/oidc/oidc.yaml new file mode 100644 index 0000000..8bc0873 --- /dev/null +++ b/deployments/oidc/oidc.yaml @@ -0,0 +1,23 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: keycloak-oidc +--- +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + name: oidc + namespace: argocd +spec: + description: access to the used namespaces for oidc + sourceRepos: + - '*' + destinations: + - namespace: keycloak-oidc + server: https://kubernetes.default.svc + clusterResourceWhitelist: + - group: '*' + kind: '*' + orphanedResources: + warn: false \ No newline at end of file