fix: make dex an app-of-apps to manage resources sensibly

This commit is contained in:
Jonas Juselius
2024-02-01 08:48:53 +01:00
parent 633f397e27
commit 87da274c8f
7 changed files with 30 additions and 1 deletions
+34
View File
@@ -0,0 +1,34 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: dex
namespace: argocd
spec:
generators:
- list:
elements:
- cluster: https://kubernetes.default.svc
env: prod
hostanme: idp.srv.oceanbox.io
- cluster: https://kubernetes.default.svc
env: staging
hostanme: idp.beta.oceanbox.io
template:
metadata:
name: '{{ env }}-dex'
spec:
project: atlantis
destination:
server: https://kubernetes.default.svc
namespace: idp
sources:
- repoURL: https://charts.dexidp.io
targetRevision: 0.16.0
chart: dex
helm:
valueFiles:
- $values/dex/values.yaml
- $values/dex/{{ env }}-values.yaml
- repoURL: https://gitlab.com/oceanbox/manifests.git
targetRevision: HEAD
ref: values
+15
View File
@@ -0,0 +1,15 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: dex-resources
namespace: argocd
spec:
project: atlantis
destination:
server: https://kubernetes.default.svc
namespace: idp
source:
repoURL: https://gitlab.com/oceanbox/manifests.git
targetRevision: HEAD
path: dex/resources