mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
There are tools like cluster-api which create and manage kubernetes cluster on CloudStack. This PR adds the option to add unmanaged kubernetes cluster which are not managed by CKS plugin. This helps provide a consolidated view of unmanaged clusters on CloudStack. The changes done make sure that operations for managed clusters are not executed for unmanaged clusters. Two new APIs have also been added: 1. addVirtualMachinesToKubernetesCluster - to add VMs to unmanaged clusters. 2. removeVirtualMachinesFromKubernetesCluster - to remove VMs to unmanaged clusters. Two APIs have been updated: 1. createKubernetesCluster - made KUBERNETES_VERSION_ID, SERVICE_OFFERING_ID, SIZE as not required for unmanaged clusters. Add an additional parameter, managed, which is true by default. 2. listKubernetesClusters - Add a parameter managed to filter on managed field. Co-authored-by: Pearl Dsilva <pearl1594@gmail.com> Co-authored-by: dahn <daan.hoogland@gmail.com>