-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Deprecate kubectl scale job #60139
Deprecate kubectl scale job #60139
Conversation
This matches the discussion in sig-cli. /lgtm |
pkg/kubectl/cmd/scale.go
Outdated
@@ -146,6 +147,10 @@ func RunScale(f cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []strin | |||
} | |||
|
|||
mapping := info.ResourceMapping() | |||
if mapping.Resource == "jobs" { | |||
glog.Warningf("%s scale job is DEPRECATED and will be removed in a future version.", cmd.Parent().Name()) |
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.
we normally use fmt.fprintf(stderr
to avoid irrelevant line numbers.
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.
That's what I had originally, but then I found this cherry. Although I'm fine fixing the other one as well to use fmt.Fprintf
/hold fix up the printing |
676ab52
to
2935fd6
Compare
@deads2k fixed the printing and updated |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: deads2k, soltysh 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 |
The printing was fixed, I'm guessing David forgot to : |
/test all [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here. |
What this PR does / why we need it:
With the generic scaler (#58298) the only problem is job and as discussed in #58468 (comment) and during SIG CLI we've agreed that scaling jobs was a mistake we need to revert.
This PR deprecates scale command for jobs, only.
/assign @deads2k @pwittrock
Release note: