-
Notifications
You must be signed in to change notification settings - Fork 62
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
Add --additional-tag option to imgpkg push. #355
Comments
Hello, By your description, it does indeed sound like something that we can improve to help your use case. |
I could see this as being useful for bundles as well. Same argument, people may want something tagged as X.Y but still want latest as well for convenience. For development or experimentation using latest in this scenario would be fine so don't have to go work out what actual latest X.Y was. Not everything is production nor need production level guarantees around pinning versions. |
This issue is being marked as stale due to a long period of inactivity and will be closed in 5 days if there is no response. |
Still interested in this. Go away stale bot. |
This issue is being marked as stale due to a long period of inactivity and will be closed in 5 days if there is no response. |
Still interested in this. Go away stale bot. |
@joaopapereira Is anyone working on this? If not is this something I could work on? I don't think it would be too dissimilar from what I did for labels. |
To the best of my knowledge, no one is working on it. Nevertheless, I just assigned it to you, so feel free to work on it. |
Ok, I have a PR up that I believe captures the intent described above. One thing that I am unsure about is if/how output from the CLI should change. Listing the tags that get pushed seems like a given, but the way the existing output works, it prints the files/directories of the image/bundle (duplicated for each tag that gets pushed). Not a problem really, but not sure if that's something that needs to be changed. |
Describe the problem/challenge you have
I need to be able to add multiple tags to an image when using
imgpkg push -i
. For example, I would use an explicit tag based on version or a sha, but at the same time still need the image tagged withlatest
. At present need to do two runs ofimgpkg push
with the same input.Running
imgpkg push
twice is inconvenient.Describe the solution you'd like
Add an
--additional-tag
option for allowing one or more (list option more than once) tags to the image in addition to the primary tag in the image reference given to--image
option.Anything else you would like to add:
Since
imgpkg push
already adds asha256-???.imgpkg
tag in addition to the user tag, the mechanics should exist already to do this, so shouldn't be a huge problem.The name for the option of
--additional-tag
is inspired by option of same name inskopeo
used to add extra tags when copying images.Vote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"
We are also happy to receive and review Pull Requests if you want to help work on this issue.
The text was updated successfully, but these errors were encountered: