I’m using skaffold v1.27.0 with kustomize 4.2.0
Background: The platform I use provides a CRD to manage deployment instead of the k8s deployment itself, more like:
Kind: Application
spec:
image: xxx
This is the command I used: skaffold
build --dry-run -q | skaffold render --digest-source='tag' --build-artifacts - --offline=true -p noprod | kpt cfg grep “kind=Application"
The expectation would be:
Kind: Application
spec:
Image: my-awesome-repo/xxx:tag
But the actual result is:
Kind: Application
spec:
image: xxx
Notice: skaffold
build --dry-run -q works as expected with env variable SKAFFOLD_DEFAULT_REPO=my-awesome-repo where it renders the build artifacts as expected:
{"builds":[{"imageName”:"xxx","tag”:”my-awesome-repo/xxx
:7f3eef8
"}]}
I thought this could be a kustomize problem where the `newImage` and `newTag` doesn’t work with the above CRD, but I wonder if skaffold community could help