Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThong Kuah <tkuah@gitlab.com>2019-01-30 12:26:52 +0300
committerThong Kuah <tkuah@gitlab.com>2019-01-30 15:15:02 +0300
commitbe386cb2cf1853cb7658b6c17196965efc046fe9 (patch)
treef513d8a83f0a581a18afd160a5484782c62ea970 /app/serializers
parente4dc22e330388df385b64815f12d7c51dd97635f (diff)
Expose app version to frontend
Diffstat (limited to 'app/serializers')
-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 7b1a0be75ca..62b23a889c8 100644
--- a/app/serializers/cluster_application_entity.rb
+++ b/app/serializers/cluster_application_entity.rb
@@ -4,6 +4,7 @@ class ClusterApplicationEntity < Grape::Entity
expose :name
expose :status_name, as: :status
expose :status_reason
+ expose :version
expose :external_ip, if: -> (e, _) { e.respond_to?(:external_ip) }
expose :hostname, if: -> (e, _) { e.respond_to?(:hostname) }
expose :email, if: -> (e, _) { e.respond_to?(:email) }