Skip to content

Commit

Permalink
Update argocd appset to use PR image and namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
aajimal committed Jun 6, 2024
1 parent 27cea19 commit a455ccb
Showing 1 changed file with 25 additions and 18 deletions.
43 changes: 25 additions & 18 deletions argocd/appset/spamooor-applicationset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: pr-spamooor
name: spamooor-preview
namespace: argocd
spec:
goTemplate: true
Expand Down Expand Up @@ -32,27 +32,34 @@ spec:
requeueAfterSeconds: 60
template:
metadata:
name: pr-{{.number}}-spamooor
name: spamooor-pr-{{.number}}
spec:
destination:
server: https://kubernetes.default.svc
namespace: pr-{{.number}}-spamooor
namespace: spamooor-pr-{{.number}}
project: default
sources:
- repoURL: https://github.com/astriaorg/spamooor.git
targetRevision: 'pull/{{.number}}/head' # '{{.head_sha}}'
path: charts/spamooor-cronjobs
helm:
# https://argo-cd.readthedocs.io/en/stable/user-guide/helm/#helm-value-precedence
# Order of precedence is as follows:
# lowest -> valueFiles
# -> values
# -> valuesObject
# highest -> parameters

valueFiles:
- values.yaml

source:
repoURL: https://github.com/astriaorg/spamooor.git
targetRevision: 'pull/{{.number}}/head' # '{{.head_sha}}'
path: charts/spamooor-cronjobs
helm:
# https://argo-cd.readthedocs.io/en/stable/user-guide/helm/#helm-value-precedence
# Order of precedence is as follows:
# lowest -> valueFiles
# -> values
# -> valuesObject
# highest -> parameters
valueFiles:
- values.yaml
parameters: # Paramters to override default values in values.yaml
- name: jobs.erctxsjob.image.tag
value: pr-{{.number}}
- name: jobs.eoatxsjob.image.tag
value: pr-{{.number}}
- name: jobs.univ2txsjob.image.tag
value: pr-{{.number}}
- name: jobs.gasburnertxsjob.image.tag
value: pr-{{.number}}
syncPolicy:
automated:
prune: true
Expand Down

0 comments on commit a455ccb

Please sign in to comment.