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
A mitigation would be to omit the --set flags since I don't have anything templated in the inline patch but our CI/CD pipeline injects build parameters into skaffold when we render our manifests. We are able to workaround this by placing the patches in dedicated patch files which are referenced in the kustomization.yaml overrlay.
# example
# ./overlays/dev/kustomization.yaml
resources:
- ../../base
patches:
- target:
kind: Pod
path: patch.yaml
But I would prefer to not to have to create additional files for the amount of overlays we use.
I will submit a fix for this issue.
The text was updated successfully, but these errors were encountered:
coperni
added a commit
to coperni/skaffold
that referenced
this issue
Feb 23, 2025
Kustomize supports inline patching. I noticed this issue while I was deploying a Kustomization w/ GCP Cloud Deploy
Expected behavior
Given the following input: https://github.com/coperni/skaffold-kustomize-issue
With overlay
I would expect the following output when running
skaffold render -p dev --set="foo=bar"
orskaffold render -p dev
and running
skaffold render -p prod --set="foo=bar"
orskaffold render -p prod
Actual behavior
skaffold render -p dev
skaffold render -p dev --set="foo=bar"
read /Users/REDACTED/tmp/kustomize_example/overlays/prod: is a directory
Information
Steps to reproduce
Checkout https://github.com/coperni/skaffold-kustomize-issue
Current workarounds
A mitigation would be to omit the
--set
flags since I don't have anything templated in the inline patch but our CI/CD pipeline injects build parameters into skaffold when we render our manifests. We are able to workaround this by placing the patches in dedicated patch files which are referenced in the kustomization.yaml overrlay.But I would prefer to not to have to create additional files for the amount of overlays we use.
I will submit a fix for this issue.
The text was updated successfully, but these errors were encountered: