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

apiserver: add enable subresource options #723

Merged
merged 1 commit into from
Feb 6, 2025
Merged

Conversation

Iceber
Copy link
Member

@Iceber Iceber commented Jan 21, 2025

What type of PR is this?

/kind feature

What this PR does / why we need it:
Enable support for the specified subresource via --allowed-proxy-subresources flags. No subresources are turned on by default

With --help you can see all the subresources that are supported to be turned on.

$ ./bin/apiserver --help
...

Resource server flags:

      --allowed-proxy-subresources strings
                List of subresources that support proxying requests to the specified cluster, formatted as '[resource/subresource],[subresource],...'. Supported
                proxy subresources include "pods/proxy,pods/log,pods/exec,pods/attach,pods/portfowrd,nodes/proxy,services/proxy"

...

example:

$ # Enable the proxy subresources for all resources and the exec subresources of the pods.
$ ./bin/apiserver --allowed-proxy-subresources "pods/exec,proxy"

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


@clusterpedia-bot
Copy link

Hi @Iceber,
Thanks for your pull request!
If the PR is ready, use the /auto-cc command to assign Reviewer to Review.
We will review it shortly.

Details

Instructions for interacting with me using comments are available here.
If you have questions or suggestions related to my behavior, please file an issue against the gh-ci-bot repository.

@clusterpedia-bot clusterpedia-bot added the kind/feature New feature label Jan 21, 2025
@Iceber Iceber force-pushed the enable_subresource_options branch from bc53f04 to aa8a623 Compare February 6, 2025 06:51
@Iceber Iceber force-pushed the enable_subresource_options branch from aa8a623 to 80e0804 Compare February 6, 2025 07:19
@Iceber Iceber merged commit 3fd0234 into main Feb 6, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants