GitLab API doesn't expose Cluster Managed state
Hi GitLab
I'm working with Petar Prokic to merge two GitLab instance using Congregate. While troubleshooting some post-migration bugs, I noticed a few missing information at the API level that would cause Kubernetes clusters to have different configuration between the Source and Destination.
When using the GitLab API (https://docs.gitlab.com/ee/api/project_clusters.html#get-a-single-project-cluster), there are a few missing information about Kubernetes cluster.
For example, the POST option allows you to set the following:
Attribute | Type | Required | Description |
---|---|---|---|
enabled | boolean | no | Determines if cluster is active or not, defaults to true |
managed | boolean | no | Determines if GitLab will manage namespaces and service accounts for this cluster, defaults to true |
However, these values are not available through the GET output.
This means that if the source cluster is not set to the default values, it will be incorrectly configured at the destination.
Thank you
Edited by Jason Plum