Open sev3ryn opened 3 years ago
Thanks @sev3ryn. team will try to reproduce this.
Thanks @sev3ryn. skaffold will attempt to fallback to sha256 by running the git command and looks like that is where skaffold fails. Looks like you will add to fallback here https://github.com/GoogleContainerTools/skaffold/blob/834d5eaba317b24195f2cc09dc3a850890d1a1bc/pkg/skaffold/tag/tag.go#L38
Would you be interested in contributing to the code here?
@tejal29 vice versa - I don't want any fallback to happen. If tagging with specified policy failed - return error and exit. imho, this block should be removed
and instead just return an error
Bumping to p1: discussed with @nkubala and there are a few issues here:
sha256
tagger since it actually overwrites latest
which is almost certainly not what anybody would want. The new inputDigest
is the better choice since it's virtually certain to not conflict with any other tags.@nkubala dropping the priority since you are not actively working on it. feel free to bump it up.
Note: I think it makes sense to fallback if the user hasn't specified a tag policy. But if the user specified the gitCommit
tag policy and git
was not resolved, then we should fail.
When git is not installed skaffold silently falls back to sha256 tagPolicy ignoring gitCommit tagPolicy. I've got hard time debugging why skaffold works as expected locally but wrong in CI, while versions are same
Expected behavior
FAILURE: git not installed. Can't use specified tagPolicy
Actual behavior
Silent fallback to sha256 tagPolicy. Images tagged with IMAGE_TAG is set to latest
Information
Steps to reproduce the behavior
skaffold render