summaryrefslogtreecommitdiff
path: root/lib/api/project_clusters.rb
diff options
context:
space:
mode:
authorMayra Cabrera <mcabrera@gitlab.com>2019-03-28 10:36:44 -0600
committerMayra Cabrera <mcabrera@gitlab.com>2019-03-28 11:05:05 -0600
commit04eecfbc5e01c4b5115e7e0955f25094ac21d18c (patch)
tree39136b2ce4309dcb97690f432fd3898aa6cd3d98 /lib/api/project_clusters.rb
parenta74c3e6c3b418ea585f02ba15af1c7292f895a1a (diff)
downloadgitlab-ce-59441-add-base-domain-to-cluster-api.tar.gz
Include cluster domain into Project Cluster API59441-add-base-domain-to-cluster-api
Domain was introduced on 11.8 and was not included on the Project Cluster API. With this change user will be able to include domain when adding and updating a cluster. Domain will also be included on the GET calls. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/59441
Diffstat (limited to 'lib/api/project_clusters.rb')
-rw-r--r--lib/api/project_clusters.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/api/project_clusters.rb b/lib/api/project_clusters.rb
index c96261a7b57..b62ec887183 100644
--- a/lib/api/project_clusters.rb
+++ b/lib/api/project_clusters.rb
@@ -53,6 +53,7 @@ module API
params do
requires :name, type: String, desc: 'Cluster name'
optional :enabled, type: Boolean, default: true, desc: 'Determines if cluster is active or not, defaults to true'
+ optional :domain, type: String, desc: 'Cluster base domain'
requires :platform_kubernetes_attributes, type: Hash, desc: %q(Platform Kubernetes data) do
requires :api_url, type: String, allow_blank: false, desc: 'URL to access the Kubernetes API'
requires :token, type: String, desc: 'Token to authenticate against Kubernetes'
@@ -83,6 +84,7 @@ module API
params do
requires :cluster_id, type: Integer, desc: 'The cluster ID'
optional :name, type: String, desc: 'Cluster name'
+ optional :domain, type: String, desc: 'Cluster base domain'
optional :platform_kubernetes_attributes, type: Hash, desc: %q(Platform Kubernetes data) do
optional :api_url, type: String, desc: 'URL to access the Kubernetes API'
optional :token, type: String, desc: 'Token to authenticate against Kubernetes'