Skip to content

Commit

Permalink
Add api application resource in app-of-apps for platform api (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
dati18 authored Sep 23, 2024
1 parent c50f5c4 commit 77ec7ec
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
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.1
version: 1.0.2
appVersion: "1.0"
maintainers:
- name: WBstack
Expand Down
28 changes: 28 additions & 0 deletions charts/argocd-apps/templates/wbaas-api.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: api
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: default
server: {{ .Values.clusterUrl }}
project: {{ .Values.environment }}
sources:
- repoURL: {{ .Values.repoUrls.wbstack }}
targetRevision: 0.31.2
chart: api
helm:
valueFiles:
- $deployRepo/k8s/argocd/{{ .Values.environment }}/api.values.yaml
- repoURL: {{ .Values.repoUrls.deploy }}
targetRevision: HEAD
ref: deployRepo

syncPolicy:
automated:
# disable self-healing for local env so we can use skaffold
selfHeal: {{- if eq .Values.environment "local" }} false {{ else }} true {{ end }}
prune: false
1 change: 1 addition & 0 deletions charts/argocd-apps/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
repoUrls:
deploy: https://github.com/wmde/wbaas-deploy
charts: https://github.com/wbstack/charts.git
wbstack: https://wbstack.github.io/charts
clusterUrl: https://kubernetes.default.svc
environment: production

Expand Down

0 comments on commit 77ec7ec

Please sign in to comment.