Skip to content

Commit

Permalink
Add x/capi/remove-node endpoint (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
bschimke95 committed Jun 24, 2024
1 parent 78f406c commit 48be3da
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/k8s/pkg/k8sd/api/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
},
}
}

0 comments on commit 48be3da

Please sign in to comment.