Below is part of my values.yaml values.yaml
image:
tag: "${CI_COMMIT_SHORT_SHA}"
While running the installtion in git CI, I can easily pass the override as below.
helm install <release name> --set image.tag=${CI_COMMIT_SHORT_SHA} <chart name>
Now, We have written the argocd application manifest to install the helm. But not sure how can we pass refer and pass commit SHA id as image tag override.
argocd manifest file as below.
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: my-app
namespace: argocd
spec:
destination:
namespace: my-app
server: 'https://destination-cluster'
project: default
syncPolicy:
automated:
prune: true
selfHeal: true
source:
repoURL: 'https://my-git-service/repo/my-app.git'
path: chart/my-app
targetRevision: main
helm:
image.tag: <Here-I-Need-SHA-Value>
Any help would be great!
You can use four different methods at time of writing:
You can use
spec.source.helm.parametersor
spec.source.helm.valueFilesto reference a values file:or
spec.source.helm.valuesObjectfor providing them as in object:or
spec.source.helm.valuesfor providing in-line values:A full Argo CD helm app using
spec.source.helm.valuesObjectto pass inimage.tagto the bitnami sealed secrets helm chart: