-
Notifications
You must be signed in to change notification settings - Fork 1.7k
skaffold render
should accept tagged images
#4874
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
the reason we designed skaffold this way is so users wouldn't get themselves into an unpredictable situation when deploying with skaffold. if a user provided a manifest with an existing tag and ran technically speaking this is possible in skaffold, but we should make sure we don't enable users to do things they don't mean to do, and that the UX is intuitive. we should also consider how this factors into a few other FRs related to render/deploy:
|
skaffold render
should accept tagged images
This issue is approaching SLO. Any takers @marlon-gamez @nkubala @yuwenma @gsquared94 @IsaacPD |
I'll try and get a fix available |
I have not actually been able to reproduce the behavior as described here. I tried it on the examples/getting-started project
containers:
- name: getting-started
image: gcr.io/isaacpd-test/skaffold-example:1277ddcd3b1e840c76abe71d1d35fd1716a0cb87be41fa145a3e12ec0f2e2eb8
All that I see in the output is the same image name that was output as the original "skaffold render". I'm not getting the scenario where the tag is appended onto the tag in the manifest. Sorry if i'm misunderstanding what the intended behavior is here, I'm also using |
alright, out of curiosity i dug into this one again and was also unable to reproduce. i did run into a few inconsistencies which i think we should track in separate issues, since they're not exactly related to this specific issue. @yuwenma would you be able to provide more detailed repro instructions? did you use any additional flags on the call to |
@yuwenma with the new render design we're working on, i think this issue is obsolete. i'll close it for now, but feel free and reopen if you think it's still relevant. |
Expected behavior
skaffold render should be able to update the new tag to the image.
For example, if the old tag is 2020-09-28_0000 and the new tag is 2020-09-28_1111 , this change should happen in deployment.yaml files.
Actual behavior
Skaffold does not update but attach the new tag (See here). This results in an increasing image tag and eventually hits the max length limitation.
Information
Steps to reproduce the behavior
pod.yaml
Proposal
Per offline discussion w/ @nkubala , we expect
skaffold render
to accept a new flag "--ignoreTag=". When enabled, "skaffold render" will replace the image tag with the new tag instead of appending the tag at the image tail.The text was updated successfully, but these errors were encountered: