-
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
Start deprecation of --record flag #102873
Conversation
@soltysh: This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/retest |
@@ -93,6 +93,7 @@ func (f *RecordFlags) AddFlags(cmd *cobra.Command) { | |||
|
|||
if f.Record != nil { | |||
cmd.Flags().BoolVar(f.Record, "record", *f.Record, "Record current kubectl command in the resource annotation. If set to false, do not record the command. If set to true, record the command. If not set, default to updating the existing annotation value only if one already exists.") | |||
cmd.Flags().MarkDeprecated("record", "--record will be removed in the future") |
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.
cmd.Flags().MarkDeprecated("record", "--record will be removed in the future") | |
cmd.Flags().MarkDeprecated("record", "--record will be removed in a future Kubernetes release") |
?
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 consistent with all the rest of deprecation messages so I left is as is.
Changelog nit; can I suggest:
|
Good point - updated. |
/retest |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: eddiezane, 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 |
/retest Review the full test history for this PR. Silence the bot with an |
1 similar comment
/retest Review the full test history for this PR. Silence the bot with an |
xref: #40422 |
Did you have alternative? |
see the section "What this PR does / why we need it:" in the PR description #102873 (comment) |
@BenTheElder how does the audit logging apply here, hopefully this doesn't mean we need to browse thru the audit log for history command? The other link sounds more reasonable, but any idea how to use it with Hopefully |
Would like to mention that using the record function is also still part of the linuxfoundation CKA curriculum at the moment. |
@olwenya just tested like this and it worked:
Not perfect, but is an alternative. |
What type of PR is this?
/kind cleanup
/kind deprecation
/sig cli
/priority backlog
What this PR does / why we need it:
This is a follow up from a discussion at SIG-CLI some time ago and email send to k/dev. I haven't heard any complaints and with new mechanism which sends commands through HTTP headers entering beta and very rich auditing functionality available in kubernetes it's time to deprecate
--record
flag which wasn't used consistently across all commands and is rather confusing to a lot of users.Special notes for your reviewer:
/assign @eddiezane
Does this PR introduce a user-facing change?