skaffold icon indicating copy to clipboard operation
skaffold copied to clipboard

open skaffold-overrides.yaml: no such file or directory since upgrading to skaffold "v2.15.0"

Open tbrethersd opened this issue 9 months ago • 4 comments

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

tbrethersd avatar Apr 11 '25 15:04 tbrethersd

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.

osbornk avatar Apr 17 '25 22:04 osbornk

It looks like it was the skaffold API version. I was on v2beta27. Upgrading to v4beta11 seems to have fixed it.

osbornk avatar Apr 18 '25 14:04 osbornk

Upgrading to v4beta11 hasn't solved the issue for me :(

tbrethersd avatar Apr 25 '25 12:04 tbrethersd

As I have found such error comes only in cases whne in profiles you adding overrides for helm releases via patches

simonoff avatar Apr 29 '25 17:04 simonoff

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

vellotis avatar Jul 31 '25 12:07 vellotis