Add Kubernetes cluster to GitLab group via GitLab API

6/27/2019

GitLab offers a great integration with Kubernetes: https://docs.gitlab.com/ce/user/project/clusters/

We are in actively development, so create clusters routinely.
So we have automated majority of the process of attaching a cluster to GitLab.

However GitLab API only allows to attach only on Project level: https://docs.gitlab.com/ee/api/project_clusters.html#add-existing-cluster-to-project

There is no API for attaching on Group level.
I can only guess that this is because Group-level Kubernetes clusters are still in Beta: https://docs.gitlab.com/ee/user/group/clusters/index.html

Can it still be done?
Maybe there is a "Beta" version of the API too, open to early adopters?

Raised this question also in GitLab backlog: https://gitlab.com/gitlab-org/gitlab-ce/issues/64218


Update 2019-07-08

Luckily indeed there is an initiative to extend cluster API to Groups: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/30213

-- Ivan
gitlab
kubernetes

0 Answers