Skip to content

Commit

Permalink
try app-of-applicationsets
Browse files Browse the repository at this point in the history
  • Loading branch information
deer-wmde committed Jul 30, 2024
1 parent 441b9af commit 55fdda9
Show file tree
Hide file tree
Showing 9 changed files with 68 additions and 203 deletions.
33 changes: 0 additions & 33 deletions charts/argocd-apps/env/local/ui.values.yaml

This file was deleted.

36 changes: 0 additions & 36 deletions charts/argocd-apps/env/production/ui.values.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions charts/argocd-apps/env/staging/ui.values.yaml.gotmpl

This file was deleted.

14 changes: 0 additions & 14 deletions charts/argocd-apps/templates/env/local/_ui.values.tpl

This file was deleted.

38 changes: 0 additions & 38 deletions charts/argocd-apps/templates/env/production/_ui.values.tpl

This file was deleted.

74 changes: 48 additions & 26 deletions charts/argocd-apps/templates/wbaas-ui.yaml
Original file line number Diff line number Diff line change
@@ -1,32 +1,54 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
kind: ApplicationSet
metadata:
name: ui
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: default
server: {{ .Values.spec.destination.server }}
project: default
source:
path: charts/ui
repoURL: https://github.com/wbstack/charts
targetRevision: test/value-files
helm:
parameters:
- name: helm.debug
value: "true"
valueFiles:
- "values.production.yaml"
{{- if eq .Values.environment "staging" }}
- "values.staging.yaml"
{{ else if eq .Values.environment "local" }}
- "values.local.yaml"
{{- end }}
goTemplate: true
goTemplateOptions: ["missingkey=error"]
generators:
# merge 'parent' generator
- merge:
mergeKeys:
- server
generators:
- git:
repoURL: {{ .Values.repoUrls.main }}
revision: 'de/argo-apps-ui'
# revision: HEAD
files:
# - path: 'charts/argocd-apps/env/production/ui.values.yaml'
- path: 'k8s/argocd/production/ui.values.yaml'
# values:
# server: foo
- git:
repoURL: {{ .Values.repoUrls.main }}
revision: 'de/argo-apps-ui'
# revision: HEAD
files:
- path: 'k8s/argocd/local/ui.values.yaml'
template:
metadata:
name: 'ui'
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io

syncPolicy:
automated:
selfHeal: false
prune: true
spec:
project: default
destination:
server: {{ .Values.spec.destination.server }}
namespace: default
source:
repoURL: {{ .Values.repoUrls.charts }}
targetRevision: HEAD
path: charts/ui
helm:
parameters:
- name: helm.debug
value: "true"
values: '{{ toYaml .Values }}'
syncPolicy:
automated:
prune: false
selfHeal: false
19 changes: 19 additions & 0 deletions charts/argocd-config/templates/applications.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: app-of-apps
spec:
destination:
server: https://kubernetes.default.svc
project: default
source:
path: charts/argocd-apps
repoURL: {{ .Values.repoUrls.main }}
targetRevision: de/argo-apps-ui # debug! needs to be set to HEAD
helm:
values: |
{{ toYaml .Values | indent 8 }}
syncPolicy:
automated:
prune: true
selfHeal: false
54 changes: 0 additions & 54 deletions charts/argocd-config/templates/applicationsets.yaml

This file was deleted.

1 change: 1 addition & 0 deletions charts/argocd-config/values.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
repoUrls:
main: https://github.com/wmde/wbaas-deploy
charts: https://github.com/wbstack/charts.git

0 comments on commit 55fdda9

Please sign in to comment.