Skip to content

Commit

Permalink
Create ApplicationSet.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
academiaonline authored Nov 7, 2024
1 parent 67ae536 commit 812df05
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions main/helm/ApplicationSet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: phpinfo-helm
namespace: openshift-gitops
spec:
generators:
- list:
elements:
- cluster: '1'
- cluster: '2'
syncPolicy:
preserveResourcesOnDeletion: true
template:
metadata:
labels:
applicationset: phpinfo-deployments
name: phpinfo-helm-{{ cluster }}
spec:
destination:
namespace: phpinfo-helm-{{ cluster }}
server: 'https://kubernetes.default.svc'
project: default
source:
helm:
valueFiles:
- values.phpinfo-helm-{{ cluster }}.yaml
path: main/helm
repoURL: https://github.com/sebastian-colomar/phpinfo.git
targetRevision: HEAD
syncPolicy:
automated:
prune: true
selfHeal: false
syncOptions:
- ApplyOutOfSyncOnly=true
- CreateNamespace=true

0 comments on commit 812df05

Please sign in to comment.