canonical / k8s-snap

Canonical Kubernetes is an opinionated and CNCF conformant Kubernetes operated by Snaps and Charms, which come together to bring simplified operations and an enhanced security posture on any infrastructure.
GNU General Public License v3.0
20 stars 6 forks source link

Add CAPI node-remove endpoint #509

Closed bschimke95 closed 1 week ago

bschimke95 commented 2 weeks ago

Summary

Add a new endpoint x/capi/remove-node that is protected by the CAPI access handler.

Rationale

This is a prerequisite for the removal of machines from a CAPI workload cluster. Similar to the x/capi/set-auth-token we cannot simply reuse the existing removal endpoint (k8sd/cluster/remove) as the CAPI management cluster lacks a proper auth mechanism for this. See #498 for more on this.