From db1f182670f25cf89ec868c4166aa54714576138 Mon Sep 17 00:00:00 2001 From: zees-dev <63374656+zees-dev@users.noreply.github.com> Date: Mon, 23 Aug 2021 10:53:08 +1200 Subject: [PATCH] removed kubeconfig tls check (#5443) --- api/http/handler/kubernetes/kubernetes_config.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/api/http/handler/kubernetes/kubernetes_config.go b/api/http/handler/kubernetes/kubernetes_config.go index c9c4c21e4..19bb1648b 100644 --- a/api/http/handler/kubernetes/kubernetes_config.go +++ b/api/http/handler/kubernetes/kubernetes_config.go @@ -34,14 +34,6 @@ import ( // @failure 500 "Server error" // @router /kubernetes/{id}/config [get] func (handler *Handler) getKubernetesConfig(w http.ResponseWriter, r *http.Request) *httperror.HandlerError { - if r.TLS == nil { - return &httperror.HandlerError{ - StatusCode: http.StatusInternalServerError, - Message: "Kubernetes config generation only supported on portainer instances running with TLS", - Err: errors.New("missing request TLS config"), - } - } - endpointID, err := request.RetrieveNumericRouteVariableValue(r, "id") if err != nil { return &httperror.HandlerError{http.StatusBadRequest, "Invalid endpoint identifier route variable", err}