-
Notifications
You must be signed in to change notification settings - Fork 507
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
pkg/cip: Use --no-dry-run instead of --dry-run #1806
pkg/cip: Use --no-dry-run instead of --dry-run #1806
Conversation
Similar to our `--nomock` flags for other tools, we should use a `--no-dry-run` for `cip`, since the default nil value for booleans is `false`. Meaning: If `--dry-run` is not explicitly set to `true`, our tooling will initiate an image promotion. Signed-off-by: Stephen Augustus <[email protected]>
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hasheddan, justaugustus, xmudrii 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 |
@@ -159,8 +159,9 @@ func RunPromoteCmd(opts *RunOptions) error { | |||
sc, err = reg.MakeSyncContext( | |||
mfests, | |||
opts.Threads, | |||
opts.DryRun, | |||
opts.UseServiceAcct) | |||
opts.NoDryRun, |
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’m not sure what does that function expects, but if it takes dryRun, shouldn’t we also invert it here?
For example, if takes dryRun and it is dryRun, noDryRun would be set to false, so this function would run as noDryRun instead of dryRun.
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.
@xmudrii -- It's inverted below, starting with https://github.com/kubernetes/release/pull/1806/files#diff-94fc64f6c6f758dcf8d71f20a75b9e43e7093ec5eb51c2ca80ad45532a31b423R62.
What type of PR is this?
/kind bug
What this PR does / why we need it:
Similar to our
--nomock
flags for other tools, we should use a--no-dry-run
forcip
, since the default nil value for booleans isfalse
.Meaning: If
--dry-run
is not explicitly set totrue
, our tooling willinitiate an image promotion.
Signed-off-by: Stephen Augustus [email protected]
/assign @hasheddan @xmudrii
cc: @kubernetes/release-engineering
/priority critical-urgent
Caught in https://kubernetes.slack.com/archives/C2C40FMNF/p1606776666277400?thread_ts=1606741064.265000&cid=C2C40FMNF.
Nice eye, Marko!
Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?