Skip to content

Commit

Permalink
Add frontend 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 064f05e commit 87e97c6
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/frontend-app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{{ if .Values.frontend.enabled }}
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: {{ include "common.names.fullname" $ }}-frontend
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.frontend.targetRevision }}
path: charts/frontend
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 @@ -11,3 +11,7 @@ postgresql:
backend:
enabled: true
targetRevision: deploy-with-argocd

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

0 comments on commit 87e97c6

Please sign in to comment.