You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Below you can find my ApplicationSet I'm using to deploy my apps for two different environments.
Im using ArgoCD Image Updater, and for it to work I need to set two annotations, the image list and the update-strategy.
I know I can template the image-list value with using {{path.basename}} but can I set the update-strategy with a value set in the values.yaml in each application folder?
apiVersion: argoproj.io/v1alpha1kind: ApplicationSetmetadata:
name: applicationsnamespace: argocdspec:
generators:
- git:
repoURL: https://mygithub/repo.gitrevision: HEADdirectories:
- path: apps/dev/* # Match all subdirectories in the dev folder
- path: apps/prod/* # Match all subdirectories in the prod foldertemplate:
metadata:
name: '{{path.basename}}-{{path[1]}}'# I want to set ArgoCD Image Updater annotations with values from each application # as some Applications update-strategy might be "latest", others "digest", so on...annotations:
argocd-image-updater.argoproj.io/image-list: "{{path.basename}}=ghcr.io/mrksph/{{path.basename}}:{{path[1]}}-latest"spec:
project: defaultsource:
repoURL: https://mygithub/repo.gittargetRevision: HEADpath: '{{path}}'destination:
server: https://kubernetes.default.svcnamespace: '{{path.basename}}-{{path[1]}}'syncPolicy:
automated:
prune: trueselfHeal: truesyncOptions:
- CreateNamespace=true
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Below you can find my ApplicationSet I'm using to deploy my apps for two different environments.
Im using ArgoCD Image Updater, and for it to work I need to set two annotations, the image list and the update-strategy.
I know I can template the image-list value with using
{{path.basename}}
but can I set the update-strategy with a value set in the values.yaml in each application folder?Beta Was this translation helpful? Give feedback.
All reactions