-
Notifications
You must be signed in to change notification settings - Fork 17
Allow setting custom tags when uploading to AWS #327
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
Conversation
|
I based the PR on top of #300 to make my life easier. Once that PR gets merged, I will rebase so this one has just one commit. |
6abdc52 to
478f507
Compare
|
@FrostyX You'll need to update the vendored |
|
Thank you @thozza, Updated. |
|
@FrostyX, you need to bump the minimum required version of |
|
Some of the checks run for quite a long time, so I don't know yet. But hopefully, third time's the charm. Thank you @thozza |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine but see osbuild/images#1915 (comment) - I'm not a fan of the [2]string to represent key/val. Not a blocker, I don't want to slow you down but I would like to tweak this at some point.
Also a tiny question inline.
cmd/image-builder/upload.go
Outdated
| var slicedTags [][2]string | ||
| for _, tag := range tags { | ||
| parts := strings.SplitN(tag, "=", 2) | ||
| if len(parts) != 2 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the policy of AWS here? Are values wit = allowed? Because if they are we could change this to if len(parts) < 2 and allow = in the values as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am still testing this part of the PR but then I will rebase :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It allows = in values, so I changed the code like you suggested.
We can do a potential struct follow-up ourselves so we don't have @FrostyX juggle too many dependent PRs. This PR needs some updates to the go deps (probably because we bumped versions in |
|
I submitted a PR for the |
Super nice, thank you! Probably worth cleaning the commit history (there is a wip commit in there) when doing the update once #1939 is merged. |
|
I rebased the PR. I think it will require some |
Fix #242
See osbuild/images#1903
See osbuild/images#1915