diff options
author | Thong Kuah <tkuah@gitlab.com> | 2019-01-30 12:26:52 +0300 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2019-01-30 15:15:02 +0300 |
commit | be386cb2cf1853cb7658b6c17196965efc046fe9 (patch) | |
tree | f513d8a83f0a581a18afd160a5484782c62ea970 /app | |
parent | e4dc22e330388df385b64815f12d7c51dd97635f (diff) |
Expose app version to frontend
Diffstat (limited to 'app')
-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) } |