Welcome to mirror list, hosted at ThFree Co, Russian Federation.

kas_type.rb « metadata « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 54a8a6ec40de2b6bb89594b2e85b7829e8689301 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

module Types
  module Metadata
    class KasType < ::Types::BaseObject
      graphql_name 'Kas'

      authorize :read_instance_metadata

      field :enabled, GraphQL::Types::Boolean, null: false,
            description: 'Indicates whether the Kubernetes Agent Server is enabled.'
      field :version, GraphQL::Types::String, null: true,
            description: 'KAS version.'
      field :external_url, GraphQL::Types::String, null: true,
            description: 'URL used by the Agents to communicate with KAS.'
    end
  end
end