2021-12-01 00:18:57 +00:00
|
|
|
package kubernetes
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
)
|
|
|
|
|
|
|
|
func (transport *baseTransport) proxyDeploymentsRequest(request *http.Request, namespace, requestPath string) (*http.Response, error) {
|
|
|
|
switch request.Method {
|
|
|
|
case http.MethodPost, http.MethodPatch:
|
|
|
|
transport.refreshRegistry(request, namespace)
|
|
|
|
return transport.executeKubernetesRequest(request)
|
|
|
|
default:
|
|
|
|
return transport.executeKubernetesRequest(request)
|
|
|
|
}
|
2022-01-17 05:53:32 +00:00
|
|
|
}
|