portainer/portainer

View on GitHub
api/http/handler/endpointproxy/proxy_kubernetes.go

Summary

Maintainability
A
50 mins
Test Coverage

Method Handler.proxyRequestsToKubernetesAPI has 8 return statements (exceeds 4 allowed).
Open

func (handler *Handler) proxyRequestsToKubernetesAPI(w http.ResponseWriter, r *http.Request) *httperror.HandlerError {
    endpointID, err := request.RetrieveNumericRouteVariableValue(r, "id")
    if err != nil {
        return httperror.BadRequest("Invalid environment identifier route variable", err)
    }
Severity: Major
Found in api/http/handler/endpointproxy/proxy_kubernetes.go - About 50 mins to fix

    There are no issues that match your filters.

    Category
    Status