-
Notifications
You must be signed in to change notification settings - Fork 39.8k
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 and remove --record flag from kubectl #40422
Comments
|
@soltysh do you mean only deprecating the flag and make it always record, or remove the entire recording feature? |
|
Flag and the recording functionality.
…On Jan 25, 2017 5:46 PM, "Fabiano Franz" ***@***.***> wrote:
@soltysh <https://github.com/soltysh> do you mean only deprecating the
flag and make it always record, or remove the entire recording feature?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#40422 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAjLVYE0quTFYkdfcD6QLBvzIsyG6ppIks5rV3xygaJpZM4LtiNM>
.
|
|
This type of functionality should be addressed using advanced audit feature
rather then relying on users to do this. Besides some of the command
(apply, for example) record previous state of the resource, iirc.
…On Jan 25, 2017 5:56 PM, "Maciej Szulik" ***@***.***> wrote:
Flag and the recording functionality.
On Jan 25, 2017 5:46 PM, "Fabiano Franz" ***@***.***> wrote:
> @soltysh <https://github.com/soltysh> do you mean only deprecating the
> flag and make it always record, or remove the entire recording feature?
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#40422 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AAjLVYE0quTFYkdfcD6QLBvzIsyG6ppIks5rV3xygaJpZM4LtiNM>
> .
>
|
|
SGTM |
|
If I don't hear any objections I'll start with deprecating this flag in 1.6. |
|
needs broader discussion and agreement... find the originating PR and tag those folks in. |
|
The initial PR was to address history information about deployments: #20035 implemented by @janetkuo. @Kargakis you will know better if it's still helpful, since it only has the change cause? Besides, that annotation isn't filled in when doing regular update, only certain kubectl commands actually fill this in. |
|
We still need a way to properly correlate information about why a rollout happened with the respective replica set. Admittedly, --record is far from perfect and I am all for deprecating it but not before we find a better way to store the info we need. How about a flag (either repurposing --record or a new one) that accepts the information users want to store? There have been requests about overriding change-cause, see #25554 |
|
+1 for supporting overriding change-cause. We need to provide an alternative to rollout history change-cause before deprecating cc @ghodss |
|
I haven't thought about this issue for a while, but I'm pretty sure we can solve our use case of recording which git commit or jenkins run resulted in an apply in our own custom annotation and not need a kube-standard one. |
This is not ideal because we already do this sort of thing in kubectl albeit storing less valuable info ie. the kubectl command that was invoked. @kubernetes/sig-cli-feature-requests lets add a new flag in kubectl that users can use similar to --record but instead of storing the invoked command, store the string that is passed by the user. |
|
I don't want a new flag, rather a more systematic approach to the problem.
The current flag is only partially solving this when certain kubectl
commands are being called. I agree here with @Kargakis this should be
solved first before deprecating the flag.
…On Jan 27, 2017 9:19 PM, "Michail Kargakis" ***@***.***> wrote:
I haven't thought about this issue for a while, but I'm pretty sure we can
solve our use case of recording which git commit or jenkins run resulted in
an apply in our own custom annotation and not need a kube-standard one.
This is not ideal because we already do this sort of thing in kubectl
albeit storing less valuable info ie. the kubectl command that was invoked.
@kubernetes/sig-cli-feature-requests
<https://github.com/orgs/kubernetes/teams/sig-cli-feature-requests> lets
add a new flag in kubectl that users can use similar to --record but
instead of storing the invoked command, store the string that is passed by
the user.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#40422 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAjLVXFa2t4eFxwtIH7UbChyFFUHR8Yeks5rWlE_gaJpZM4LtiNM>
.
|
|
What alternative do you suggest? Repurpose the current flag? Something else? We need users/automated processes to be able to specify a reason when images (or less frequently other parts of the pod spec) are updated so things like |
|
I'm leaning towards automated process, I don't have any details figured out, will keep you posted. |
|
/cc @adohe |
|
/cc |
|
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or |
|
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
|
Has there been any progress on this issue since 2019? |
|
#102873 this is actually happening now. |
|
+1 |
|
Is it possible for append this option on deployment yaml itself? A lot of need to use this feature for check and record history purpose. |
|
We need to provide an alternative to rollout history change-cause before deprecating --record. |
|
2022-01-20,I now use |
|
FYI (2022-02-14) |
@olwenya just tested like this and it worked: Not perfect, but is an alternative. |
|
@vjunior1981 suggestion is looking good I think. |
|
Wow this look good idea. As check back to Deployment. They also remove "--record". Will take some time to test about both of this |
|
Or even introduce ...defaults to ...defaults to |
|
Although annotate option is there to have CHANGE-CAUSE , it is better to have --record option . It may happen that some incorrect message is provided in annotate .Providing actual command that was run while updating deployment will be more useful. |
|
This does not work for me when working with DaemonSet in v1.23.1. |
|
Here my example |
|
@soltysh What is the replacement for this feature? Having to manually annotate everything is not a workable solution. I see some mention of HTTP headers getting sent by kubectl, but it is very unclear what is expected to consume these headers, and how I am expected to see them from the various yaml specs. And the kubectl debug logs don't show any additional headers being sent, even when explicitly setting |
|
it works for me: [root@(?.|default:default) ~]$ kc version --short
Client Version: v1.17.5
Server Version: v1.22.17+k3s1
[root@(?.|default:default) ~]$ kc set env ds alpine-ds AA=123
daemonset.apps/alpine-ds env updated
[root@(?.|default:default) ~]$ kc annotate ds alpine-ds kubernetes.io/change-cause='set AA=123'
daemonset.apps/alpine-ds annotated
[root@(?.|default:default) ~]$ kc rollout history ds alpine-ds
daemonset.apps/alpine-ds
REVISION CHANGE-CAUSE
5 update image to 1.19-04
6 set AA=123 |
Currently
--recordflag seems like a really bad decision made some time ago, and supporting it makes live harder when trying to modify any parts of code (see this discussion). I'm proposing to deprecate that flag and drop it entirely in future version.@liggitt fyi
@kubernetes/sig-cli-feature-requests opinions?
The text was updated successfully, but these errors were encountered: