Skip to content

Commit

Permalink
update to sync main appset
Browse files Browse the repository at this point in the history
Signed-off-by: HONG LI <[email protected]>
  • Loading branch information
lihongbj committed Apr 23, 2023
1 parent a9c00cb commit 6c945a9
Showing 1 changed file with 34 additions and 21 deletions.
55 changes: 34 additions & 21 deletions config/all-in-one/templates/cp-shared.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,38 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
kind: ApplicationSet
metadata:
name: cp-shared
annotations:
argocd.argoproj.io/sync-wave: "110"
spec:
destination:
namespace: openshift-marketplace
server: 'https://kubernetes.default.svc'
project: default
source:
path: config/cp-shared/operators
repoURL: {{ default "https://github.com/IBM/cp4waiops-gitops" .Values.cp4waiops.repoURL }}
targetRevision: {{ default "release-3.7" .Values.cp4waiops.targetRevision }}
helm:
parameters:
{{- if .Values.cp4waiops.imageCatalog }}
- name: spec.imageCatalog
value: '{{ .Values.cp4waiops.imageCatalog }}'
{{- end }}
syncPolicy:
automated:
prune: true
selfHeal: true
generators:
{{- if .Values.argocd.allowLocalDeploy }}
- clusters: {}
{{- else }}
- clusters:
selector:
matchLabels:
argocd.argoproj.io/secret-type: cluster
{{- end }}
template:
metadata:
name: '{{ `{{name}}-cp-shared` }}'
annotations:
argocd.argoproj.io/sync-wave: "110"
spec:
destination:
namespace: openshift-marketplace
server: 'https://kubernetes.default.svc'
project: default
source:
path: config/cp-shared/operators
repoURL: {{ default "https://github.com/IBM/cp4waiops-gitops" .Values.cp4waiops.repoURL }}
targetRevision: {{ default "release-3.7" .Values.cp4waiops.targetRevision }}
helm:
parameters:
{{- if .Values.cp4waiops.imageCatalog }}
- name: spec.imageCatalog
value: '{{ .Values.cp4waiops.imageCatalog }}'
{{- end }}
syncPolicy:
automated:
prune: true
selfHeal: true

0 comments on commit 6c945a9

Please sign in to comment.