diff options
Diffstat (limited to 'app/graphql/types/clusters/agent_token_type.rb')
-rw-r--r-- | app/graphql/types/clusters/agent_token_type.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/graphql/types/clusters/agent_token_type.rb b/app/graphql/types/clusters/agent_token_type.rb index 94c5fc46a5d..96fdb5f05c8 100644 --- a/app/graphql/types/clusters/agent_token_type.rb +++ b/app/graphql/types/clusters/agent_token_type.rb @@ -44,6 +44,11 @@ module Types null: true, description: 'Name given to the token.' + field :status, + Types::Clusters::AgentTokenStatusEnum, + null: true, + description: 'Current status of the token.' + def cluster_agent Gitlab::Graphql::Loaders::BatchModelLoader.new(::Clusters::Agent, object.agent_id).find end |