diff options
author | Grzegorz Bizon <grzegorz@gitlab.com> | 2019-01-30 18:06:32 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2019-01-30 18:06:32 +0300 |
commit | cb76f79dbb0c87f72cfadfb0d10ef3ba0493ad10 (patch) | |
tree | 0c5c96c0f7dcb52e6e2dd2504ecae8d8942eefbc /app/serializers/cluster_application_entity.rb | |
parent | 4d8e27df41c9ae17ac8b3200fa889b1cbc0c3d4b (diff) | |
parent | be386cb2cf1853cb7658b6c17196965efc046fe9 (diff) |
Merge branch 'cluster_status_for_ugprading' into 'master'
Expose app version to frontend
See merge request gitlab-org/gitlab-ce!24791
Diffstat (limited to 'app/serializers/cluster_application_entity.rb')
-rw-r--r-- | app/serializers/cluster_application_entity.rb | 1 |
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) } |