19 lines
566 B
Ruby
19 lines
566 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module Types
|
||
|
module Metadata
|
||
|
class KasType < ::Types::BaseObject
|
||
|
graphql_name 'Kas'
|
||
|
|
||
|
authorize :read_instance_metadata
|
||
|
|
||
|
field :enabled, GraphQL::BOOLEAN_TYPE, null: false,
|
||
|
description: 'Indicates whether the Kubernetes Agent Server is enabled.'
|
||
|
field :version, GraphQL::STRING_TYPE, null: true,
|
||
|
description: 'KAS version.'
|
||
|
field :external_url, GraphQL::STRING_TYPE, null: true,
|
||
|
description: 'The URL used by the Agents to communicate with KAS.'
|
||
|
end
|
||
|
end
|
||
|
end
|