Skip to content
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

KEP-2590: graduate kubectl subresource support to stable #4468

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MadhavJivrajani
Copy link
Contributor

  • One-line PR description: graduating KEP-2590 to stable

/assign @soltysh
/cc @nikhita

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/kep Categorizes KEP tracking issues and PRs modifying the KEP directory sig/cli Categorizes an issue or PR as relevant to SIG CLI. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Feb 1, 2024
Copy link
Member

@nikhita nikhita left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for moving this along, @MadhavJivrajani!

Copy link
Contributor

@soltysh soltysh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few minor nits, the biggest one is you're missing questions from the updated template (https://github.com/kubernetes/enhancements/blob/master/keps/NNNN-kep-template/README.md), specifically:

###### How can someone using this feature know that it is working for their instance?

###### Can enabling / using this feature result in resource exhaustion of some node resources (PIDs, sockets, inodes, etc.)?

keps/sig-cli/2590-kubectl-subresource/README.md Outdated Show resolved Hide resolved
@soltysh
Copy link
Contributor

soltysh commented Feb 5, 2024

@MadhavJivrajani ping me on slack, when you get that updated so I can quickly review that PR and give it some time for PRR

Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Feb 6, 2024
Copy link
Contributor

@soltysh soltysh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve
from sig-cli pov

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 6, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: MadhavJivrajani, soltysh
Once this PR has been reviewed and has the lgtm label, please assign jpbetz for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@MadhavJivrajani
Copy link
Contributor Author

/assign @johnbelamaric

Copy link
Member

@enj enj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PRR shadow

Comment on lines +343 to +344
Considering that this feature is a flag contained fully within in the `kubectl` client, there exist no
monitoring requirements for the same.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not true, this KEP required server side changes. For example, kubernetes/kubernetes#103516 was added in v1.24. From that PR, I do not see any generic integration test that was added to make sure that all scale sub-resources continue to support tables going forward. This needs to be added to prevent the feature from regressing in the future for new built-in types. This is not an issue for CRDs because they all use the same code path. This is (generally) not an issue for the status sub-resource because that uses the same code path as the regular resource, but it may be good to add an integration test just in case.

In fact, it is reassuring to see the community use this feature quite commonly such as in bug reports:
https://github.com/kubernetes/kubernetes/issues/116311

Seeing this and given our added unit, integration and e2e tests gives us the confidence to graduate to GA.


### Upgrade / Downgrade Strategy
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update all the relevant PRR/version skew sections to consider server side changes like kubernetes/kubernetes#103516

###### How can an operator determine if the feature is in use by workloads?

N/A

###### How can someone using this feature know that it is working for their instance?

N/A
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can I use the kube audit logs to find instances of kubectl interacting with sub-resources? Not sure why I would need to do that, but can I?

@soltysh
Copy link
Contributor

soltysh commented Feb 8, 2024

/lgtm cancel
based on slack discussion with @MadhavJivrajani we'll taking this out from 1.30 cycle, we'll push this over to 1.31

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/kep Categorizes KEP tracking issues and PRs modifying the KEP directory sig/cli Categorizes an issue or PR as relevant to SIG CLI. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
Status: Needs Triage
Development

Successfully merging this pull request may close these issues.

None yet

6 participants