I am using https://kustomize.io/ have below is my kustomization.yaml file,
I would like to pass newTag
image version to labels on deployment.yaml
when i use ArgoCD to apply this file. Does anyone have any idea without using shell script to sed the newtag
to deployment.yaml file.
deployment.yaml
apiVersion: "apps/v1"
kind: "Deployment"
metadata:
name: "hellowolrd"
spec:
template:
metadata:
labels:
app: aggregate
appversion: ${newtag} <<<<<
kustomization.yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
images:
- name: hellowolrd
newName: hellowolrd
newTag: 12345