Skip to content

Commit

Permalink
Add backend app to apps chart
Browse files Browse the repository at this point in the history
  • Loading branch information
garryod committed Oct 25, 2024
1 parent 0759c19 commit 96ba2cb
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
23 changes: 23 additions & 0 deletions charts/apps/templates/backend-app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{{ if .Values.backend.enabled }}
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: {{ include "common.names.fullname" $ }}-backend
namespace: {{ .Release.Namespace }}
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: {{ default .Release.Namespace .Values.project }}
source:
repoURL: https://github.com/diamondlightsource/developer-portal
targetRevision: {{ .Values.backend.targetRevision }}
path: charts/backend
destination:
name: {{ .Values.destination.name }}
server: {{ .Values.destination.server }}
namespace: {{ default .Release.Namespace .Values.destination.namespace }}
syncPolicy:
automated:
prune: true
selfHeal: true
{{ end }}
4 changes: 4 additions & 0 deletions charts/apps/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ destination:
postgresql:
enabled: true
targetRevision: 15.5.32

backend:
enabled: true
targetRevision: deploy-with-argocd

0 comments on commit 96ba2cb

Please sign in to comment.