open skaffold-overrides.yaml: no such file or directory since upgrading to skaffold "v2.15.0"
since upgrading to v2.15.0 we have started recieving error: open skaffold-overrides.yaml: no such file or directory
there is no mention of skaffold-overrides.yaml in the code base and even adding this file does not resolve the issue.
command running:
skaffold deploy
--namespace="${NAMESPACE}"
--profile="list of profiles"
--filename="skaffold.yaml"
--build-artifacts="${PWD}/ci/package/skaffold_build_output.json"
--verbosity error
I can confirm that I am seeing the same error as well. Skaffold 0.14.2 works fine. Skaffold 0.15.0 fails on certain projects. This is the error we get:
std out err: %!(EXTRA *errors.errorString=Pulled: HELLM_CHART/charts/IMAGE
Digest: xxxx
[helm-secrets] Decrypt: ./charts/project/helm_vars/secrets.nonprod.yaml
[helm-secrets] File does not exist: skaffold-overrides.yaml
[helm-secrets] Removed: ./charts/project/helm_vars/secrets.nonprod.yaml.dec
Error: plugin "secrets" exited with error
)
skaffold-overrides.yaml does not exist and ever has. Confusingly, skaffold 0.15.0 works fine on another project with a very similarly structured project. I have been unable to determine what the difference is.
It looks like it was the skaffold API version. I was on v2beta27. Upgrading to v4beta11 seems to have fixed it.
Upgrading to v4beta11 hasn't solved the issue for me :(
As I have found such error comes only in cases whne in profiles you adding overrides for helm releases via patches
This issue appeared with this commit https://github.com/GoogleContainerTools/skaffold/commit/759fa3836add6155e687853b4d25f9b1dd4e9253 which is used since >> v2.15.0 <<
The issue appears if you have Helm overrides defined:
manifests:
helm:
- overrides:
/* the overrides */
The reason for this is the fact that the file is created and immediately deleted in the templateArgs method with defer.
https://github.com/GoogleContainerTools/skaffold/blob/759fa3836add6155e687853b4d25f9b1dd4e9253/pkg/skaffold/render/renderer/helm/args.go#L57-L59