From 27359a7fdb06fca91e641f932d8e3e4ac84ae96f Mon Sep 17 00:00:00 2001 From: Stefan McShane Date: Fri, 10 May 2024 15:12:01 -0400 Subject: [PATCH] allowing readonly k8s access (#4636) --- api/server/router/cluster.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/server/router/cluster.go b/api/server/router/cluster.go index ce83999b7b..7bd50f7490 100644 --- a/api/server/router/cluster.go +++ b/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,