mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
* feat(ecr) EE-806 add support for aws ecr * feat(ecr) EE-806 fix wrong doc for Ecr Region Co-authored-by: Simon Meng <simon.meng@portainer.io>
15 lines
No EOL
414 B
Go
15 lines
No EOL
414 B
Go
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)
|
|
}
|
|
} |