summaryrefslogtreecommitdiff
path: root/lib/api/entities.rb
diff options
context:
space:
mode:
authorMayra Cabrera <mcabrera@gitlab.com>2019-04-01 16:29:05 +0000
committerNick Thomas <nick@gitlab.com>2019-04-01 16:29:05 +0000
commitb5e09a26de6afb0c194613c6ee4d22a22a0fce14 (patch)
tree01ed0f370aafb42567dae4cfbc07c8c9fb9a40f7 /lib/api/entities.rb
parentd8258470b5c8cf5ec9f77cb1e0f8950a87b5c110 (diff)
downloadgitlab-ce-b5e09a26de6afb0c194613c6ee4d22a22a0fce14.tar.gz
Include cluster domain into Project 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/entities.rb')
-rw-r--r--lib/api/entities.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index 0871ea8d21e..4533305bfd3 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -1588,7 +1588,7 @@ module API
end
class Cluster < Grape::Entity
- expose :id, :name, :created_at
+ expose :id, :name, :created_at, :domain
expose :provider_type, :platform_type, :environment_scope, :cluster_type
expose :user, using: Entities::UserBasic
expose :platform_kubernetes, using: Entities::Platform::Kubernetes