diff options
Diffstat (limited to 'app/graphql/types/environment_type.rb')
-rw-r--r-- | app/graphql/types/environment_type.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/graphql/types/environment_type.rb b/app/graphql/types/environment_type.rb index a3737cbcd0d..936ad52200c 100644 --- a/app/graphql/types/environment_type.rb +++ b/app/graphql/types/environment_type.rb @@ -79,6 +79,13 @@ module Types null: true, description: 'Deployment freeze periods of the environment.' + field :cluster_agent, + Types::Clusters::AgentType, + description: 'Cluster agent of the environment.', + null: true do + extension ::Gitlab::Graphql::Limit::FieldCallCount, limit: 1 + end + def tier object.tier.to_sym end |