-
Notifications
You must be signed in to change notification settings - Fork 71
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
kpromo: Add krel promote-images
functionality
#458
Conversation
From k/release at 8742f143657ad3be35ad6c044e74e87f91cf39dc. Signed-off-by: Stephen Augustus <[email protected]> Co-authored-by: Adolfo García Veytia (Puerco) <[email protected]> Co-authored-by: Sascha Grunert <[email protected]> Co-authored-by: Carlos Panato <[email protected]> Co-authored-by: Cecile Robert-Michon <[email protected]> Co-authored-by: Nabarun Pal <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: justaugustus The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -0,0 +1,358 @@ | |||
/* | |||
Copyright 2020 The Kubernetes Authors. |
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.
Copyright date was purposely left intact as 2020.
Signed-off-by: Stephen Augustus <[email protected]>
Signed-off-by: Stephen Augustus <[email protected]>
Signed-off-by: Stephen Augustus <[email protected]>
c8f2d40
to
c298abd
Compare
Signed-off-by: Stephen Augustus <[email protected]>
krel promote-images
functionalitykrel promote-images
functionality
|
||
prBody := fmt.Sprintf("Image promotion for %s %s\n", opts.project, strings.Join(opts.tags, " / ")) | ||
prBody += "This is an automated PR generated from `kpromo`\n" | ||
prBody += fmt.Sprintf("```\nkpromo pr %s\n```\n\n", args) |
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.
Nice detail capturing the command here
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.
Nice detail capturing the command here
Heh, I can't take credit!
That was @palnabarun in kubernetes/release#2320 and @CecileRobertMichon in kubernetes/release#2280. :)
return errors.Wrap(err, "adding image manifest to staging area") | ||
} | ||
|
||
commitMessage := "releng: Image promotion for " + opts.project + " " + strings.Join(opts.tags, " / ") |
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.
small nit I had from using this recently: do you think we could get rid of the releng:
prefix? or maybe just add it when it's for the Kubernetes project? Not sure if it's relevant for other projects
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.
Mind if I fix in a follow-up?
There are more things I'd like to fix about the message, but they're a little out-of-scope for this PR.
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.
sounds good 👌
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.
small nit I had from using this recently: do you think we could get rid of the
releng:
prefix? or maybe just add it when it's for the Kubernetes project? Not sure if it's relevant for other projects
Will be fixed in #460.
lgtm for the non-Kubernetes project use case |
Awesome, let the promo-tools hackathon begin ! |
What type of PR is this?
/kind feature
What this PR does / why we need it:
From https://github.com/kubernetes/release/tree/8742f143657ad3be35ad6c044e74e87f91cf39dc.
Slack convo: https://kubernetes.slack.com/archives/C2C40FMNF/p1636407926086000?thread_ts=1635789741.040200&cid=C2C40FMNF
kpromo
Signed-off-by: Stephen Augustus [email protected]
Co-authored-by: Adolfo García Veytia (Puerco) [email protected]
Co-authored-by: Sascha Grunert [email protected]
Co-authored-by: Carlos Panato [email protected]
Co-authored-by: Cecile Robert-Michon [email protected]
Co-authored-by: Nabarun Pal [email protected]
FYI to the previous contributors of this code: @puerco @saschagrunert @cpanato @CecileRobertMichon @palnabarun
Which issue(s) this PR fixes:
Special notes for your reviewer:
Still fixing this up locally, since it was more involved than I initially calculated, so expect test failures.Does this PR introduce a user-facing change?