Explorar o código

allowing readonly k8s access (#4636)

Stefan McShane %!s(int64=2) %!d(string=hai) anos
pai
achega
27359a7fdb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      api/server/router/cluster.go

+ 1 - 1
api/server/router/cluster.go

@@ -979,7 +979,7 @@ func getClusterRoutes(
 		// GET /api/projects/{project_id}/clusters/{cluster_id}/kubeconfig -> cluster.NewGetTemporaryKubeconfigHandler
 		getTemporaryKubeconfigEndpoint := factory.NewAPIEndpoint(
 			&types.APIRequestMetadata{
-				Verb:   types.APIVerbUpdate, // we do not want users with no-write access to be able to use this
+				Verb:   types.APIVerbGet,
 				Method: types.HTTPVerbGet,
 				Path: &types.Path{
 					Parent:       basePath,