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

Feat: support proxy dryrun request #123

Merged

Conversation

Somefive
Copy link
Collaborator

@Somefive Somefive commented Jan 5, 2023

Signed-off-by: Yin Da [email protected]

In Kubernetes apiserver lib, the dryRun request for rest.Connector will be filtered which means ClusterGateway cannot make proxy request for dryRun request previously. This PR solves this issue by

  1. Escape the dryRun query parameter to __dryRun at the beginning of handling proxy requests.
  2. Unescape it while making proxy requests.

https://github.com/kubernetes/kubernetes/blob/b0246c64309ce1ce504ae0a2ca3c66be6ff814e5/staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest.go#L181

@yue9944882 yue9944882 merged commit 8a8fff5 into oam-dev:master Jan 5, 2023
@Somefive Somefive deleted the feat/support-proxy-dryrun-request branch February 10, 2023 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants