kubernetes / apiserver

Library for writing a Kubernetes-style API server.
Apache License 2.0
647 stars 400 forks source link

what's CONNECT and PROXY use case #61

Closed willzgli closed 3 years ago

willzgli commented 3 years ago

At https://github.com/kubernetes/apiserver/blob/master/pkg/endpoints/installer.go#L82 , toDiscoveryKubeVerb is initialized as bellow

var toDiscoveryKubeVerb = map[string]string{ "CONNECT": "", // do not list in discovery. "DELETE": "delete", "DELETECOLLECTION": "deletecollection", "GET": "get", "LIST": "list", "PATCH": "patch", "POST": "create", "PROXY": "proxy", "PUT": "update", "WATCH": "watch", "WATCHLIST": "watch", }

I don't understand how and when to use CONNECT and PROXY action. Is there some documents or examples .