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

metadata_type.rb « helm « packages « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: eeb3e8087a8ea1098ed24f02070b55c55f13ec48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# frozen_string_literal: true

module Types
  module Packages
    module Helm
      # rubocop: disable Graphql/AuthorizeTypes
      class MetadataType < BaseObject
        graphql_name 'PackageHelmMetadataType'
        description 'Represents the contents of a Helm Chart.yml file'

        # Need to be synced with app/validators/json_schemas/helm_metadata.json
        field :name, GraphQL::Types::String, null: false, description: 'Name of the chart.'
        field :home, GraphQL::Types::String, null: true, description: 'URL of the home page.'
        field :sources, [GraphQL::Types::String], null: true, description: 'URLs of the source code for the chart.'
        field :version, GraphQL::Types::String, null: false, description: 'Version of the chart.'
        field :description, GraphQL::Types::String, null: true, description: 'Description of the chart.'
        field :keywords, [GraphQL::Types::String], null: true, description: 'Keywords for the chart.'
        field :maintainers, [Types::Packages::Helm::MaintainerType], null: true, description: 'Maintainers of the chart.'
        field :icon, GraphQL::Types::String, null: true, description: 'URL to an SVG or PNG image for the chart.'
        field :api_version, GraphQL::Types::String, null: false, description: 'API version of the chart.', hash_key: "apiVersion"
        field :condition, GraphQL::Types::String, null: true, description: 'Condition for the chart.'
        field :tags, GraphQL::Types::String, null: true, description: 'Tags for the chart.'
        field :app_version, GraphQL::Types::String, null: true, description: 'App version of the chart.', hash_key: "appVersion"
        field :deprecated, GraphQL::Types::Boolean, null: true, description: 'Indicates if the chart is deprecated.'
        field :annotations, GraphQL::Types::JSON, null: true, description: 'Annotations for the chart.' # rubocop:disable Graphql/JSONType
        field :kube_version, GraphQL::Types::String, null: true, description: 'Kubernetes versions for the chart.', hash_key: "kubeVersion"
        field :dependencies, [Types::Packages::Helm::DependencyType], null: true, description: 'Dependencies of the chart.'
        field :type, GraphQL::Types::String, null: true, description: 'Type of the chart.', hash_key: "appVersion"
      end
    end
  end
end