From 48be3da4cc7ec3035f8eefd83ce0a9eb61ee73ad Mon Sep 17 00:00:00 2001 From: Benjamin Schimke Date: Mon, 24 Jun 2024 09:19:40 +0200 Subject: [PATCH] Add x/capi/remove-node endpoint (#509) --- src/k8s/pkg/k8sd/api/endpoints.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/k8s/pkg/k8sd/api/endpoints.go b/src/k8s/pkg/k8sd/api/endpoints.go index 96bc499c5..b277ccc27 100644 --- a/src/k8s/pkg/k8sd/api/endpoints.go +++ b/src/k8s/pkg/k8sd/api/endpoints.go @@ -100,5 +100,10 @@ func (e *Endpoints) Endpoints() []rest.Endpoint { Path: "x/capi/set-auth-token", Post: rest.EndpointAction{Handler: e.postSetClusterAPIAuthToken}, }, + { + Name: "ClusterAPI/RemoveNode", + Path: "x/capi/remove-node", + Post: rest.EndpointAction{Handler: e.postClusterRemove, AccessHandler: ValidateCAPIAuthTokenAccessHandler("capi-auth-token"), AllowUntrusted: true}, + }, } }