I have a azure devops pipeline to deploy my helm chart to Kubernetes cluster.
In helm upgrade command I have specified –post-renderer which runs a script
This script runs command
kubectl kustomize ./
kustomization.yaml contents
resources:
- deployment.yml
patches:
- target:
kind: Deployment
path: set_affinitytolerations.yml
While running the pipeline I can see the error
error: accumulating resources: accumulating resources from 'deployment.yml': MalformedYAMLError: yaml: line 3: did not find expected key in File: deployment.yml
Is there any way I can print the input deployment.yaml file being fed to kustomize
I am using
Client Version: v1.32.0
Kustomize Version: v5.5.0
Server Version: v1.26.10+rke2r2
I checked command line options available for for kustomize by running
kubectl kustomize --help
But couldn’t find any option
Susheel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.