gitlab-org--gitlab-foss/app/serializers/cluster_application_entity.rb
Dmitriy Zaporozhets 4220e914db Add support for Jupyter in GitLab via Kubernetes
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-05-25 17:16:41 +03:00

7 lines
257 B
Ruby

class ClusterApplicationEntity < Grape::Entity
expose :name
expose :status_name, as: :status
expose :status_reason
expose :external_ip, if: -> (e, _) { e.respond_to?(:external_ip) }
expose :hostname, if: -> (e, _) { e.respond_to?(:hostname) }
end