Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/argocd-apps/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: argocd-apps
description: Chart to deploy WBaaS apps in an "app-of-apps" pattern via ArgoCD
type: application
version: 1.0.5
version: 1.0.6
appVersion: "1.0"
maintainers:
- name: WBstack
Expand Down
27 changes: 27 additions & 0 deletions charts/argocd-apps/templates/redis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: redis
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: default
server: {{ .Values.clusterUrl }}
project: {{ .Values.environment }}
sources:
- repoURL: {{ .Values.repoUrls.bitnami }}
targetRevision: {{ .Values.chartVersions.redis }}
chart: redis
helm:
valueFiles:
- $deployRepo/k8s/argocd/{{ .Values.environment }}/redis.values.yaml
- repoURL: {{ .Values.repoUrls.deploy }}
targetRevision: de/argo-redis2 # use the unmerged branch on the deploy repository
ref: deployRepo

syncPolicy:
automated:
selfHeal: true
prune: false
3 changes: 3 additions & 0 deletions charts/argocd-apps/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ repoUrls:
deploy: https://github.com/wmde/wbaas-deploy
charts: https://github.com/wbstack/charts.git
wbstack: https://wbstack.github.io/charts
bitnami: https://charts.bitnami.com/bitnami
clusterUrl: https://kubernetes.default.svc
environment: production

chartVersions:
redis: 17.3.8
# "inherits" values from argocd-config chart
2 changes: 1 addition & 1 deletion charts/argocd-config/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: argocd-config
description: Chart to deploy ArgoCD configuration (including the argocd-apps chart)
type: application
version: 1.0.7
version: 1.0.8
appVersion: "1.0"
maintainers:
- name: WBstack
Expand Down
22 changes: 15 additions & 7 deletions charts/argocd-config/templates/app-of-apps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,21 @@ spec:
server: https://kubernetes.default.svc
namespace: argocd
project: {{ .Values.environment }}
source:
repoURL: {{ .Values.repoUrls.wbstack }}
targetRevision: 1.0.5
chart: argocd-apps
helm:
values: |
{{ toYaml .Values | indent 8 }}
sources:
- repoURL: https://github.com/wbstack/charts.git
targetRevision: "de/argo-apps-redis-demo-dnm" # use this branch to
# get the new unreleased app-of-apps chart including the alteration
# to use the unmerged branch on the deploy repo for values in
# redis.yaml
path: "charts/argocd-apps"
helm:
values: |
{{ toYaml .Values | indent 10 }}
valueFiles:
- $deployRepo/k8s/argocd/{{ .Values.environment }}/app-of-apps.values.yaml
- repoURL: {{ .Values.repoUrls.deploy }}
targetRevision: de/argo-redis2 # use the unmerged branch on the deploy repository
ref: deployRepo
syncPolicy:
automated:
prune: false
Expand Down
1 change: 1 addition & 0 deletions charts/argocd-config/templates/projects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ spec:
- {{ .Values.repoUrls.deploy }}
- {{ .Values.repoUrls.charts }}
- {{ .Values.repoUrls.wbstack }}
- {{ .Values.repoUrls.bitnami }}
clusterResourceWhitelist:
- group: rbac.authorization.k8s.io
kind: ClusterRole
Expand Down
1 change: 1 addition & 0 deletions charts/argocd-config/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ repoUrls:
deploy: https://github.com/wmde/wbaas-deploy
charts: https://github.com/wbstack/charts.git
wbstack: https://wbstack.github.io/charts
bitnami: https://charts.bitnami.com/bitnami