summaryrefslogtreecommitdiff
path: root/app/serializers/cluster_application_entity.rb
diff options
context:
space:
mode:
authorwalkafwalka <2865898-walkafwalka@users.noreply.gitlab.com>2019-03-07 13:51:43 -0800
committerwalkafwalka <2865898-walkafwalka@users.noreply.gitlab.com>2019-03-07 15:25:48 -0800
commit460797dec3dc143943390e86a09d6e6b45a465d8 (patch)
treea5495703f3bfd1152929c84853322cd9a6812f15 /app/serializers/cluster_application_entity.rb
parent31cf53df4d766ef58d6d5be60d5fa2e380406fc8 (diff)
downloadgitlab-ce-460797dec3dc143943390e86a09d6e6b45a465d8.tar.gz
Add support for ingress hostnamesingress-hostnames
Diffstat (limited to 'app/serializers/cluster_application_entity.rb')
-rw-r--r--app/serializers/cluster_application_entity.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/serializers/cluster_application_entity.rb b/app/serializers/cluster_application_entity.rb
index 02df1480828..a4a2c015c4e 100644
--- a/app/serializers/cluster_application_entity.rb
+++ b/app/serializers/cluster_application_entity.rb
@@ -6,6 +6,7 @@ class ClusterApplicationEntity < Grape::Entity
expose :status_reason
expose :version
expose :external_ip, if: -> (e, _) { e.respond_to?(:external_ip) }
+ expose :external_hostname, if: -> (e, _) { e.respond_to?(:external_hostname) }
expose :hostname, if: -> (e, _) { e.respond_to?(:hostname) }
expose :email, if: -> (e, _) { e.respond_to?(:email) }
expose :update_available?, as: :update_available, if: -> (e, _) { e.respond_to?(:update_available?) }