apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: consoleclidownloads.console.openshift.io
  annotations:
    description: Extension for configuring openshift web console command line interface
      (CLI) downloads.
    displayName: ConsoleCLIDownload
    include.release.openshift.io/ibm-cloud-managed: "true"
    include.release.openshift.io/self-managed-high-availability: "true"
    include.release.openshift.io/single-node-developer: "true"
spec:
  scope: Cluster
  group: console.openshift.io
  names:
    plural: consoleclidownloads
    singular: consoleclidownload
    kind: ConsoleCLIDownload
    listKind: ConsoleCLIDownloadList
  versions:
  - name: v1
    served: true
    storage: true
    additionalPrinterColumns:
    - name: Display name
      type: string
      jsonPath: .spec.displayName
    - name: Age
      type: string
      jsonPath: .metadata.creationTimestamp
    subresources:
      status: {}
    schema:
      openAPIV3Schema:
        description: ConsoleCLIDownload is an extension for configuring openshift
          web console command line interface (CLI) downloads.
        type: object
        required:
        - spec
        properties:
          apiVersion:
            description: 'APIVersion defines the versioned schema of this representation
              of an object. Servers should convert recognized schemas to the latest
              internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
            type: string
          kind:
            description: 'Kind is a string value representing the REST resource this
              object represents. Servers may infer this from the endpoint the client
              submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
            type: string
          metadata:
            type: object
          spec:
            description: ConsoleCLIDownloadSpec is the desired cli download configuration.
            type: object
            required:
            - description
            - displayName
            - links
            properties:
              description:
                description: description is the description of the CLI download (can
                  include markdown).
                type: string
              displayName:
                description: displayName is the display name of the CLI download.
                type: string
              links:
                description: links is a list of objects that provide CLI download
                  link details.
                type: array
                items:
                  type: object
                  required:
                  - href
                  properties:
                    href:
                      description: href is the absolute secure URL for the link (must
                        use https)
                      type: string
                      pattern: ^https://
                    text:
                      description: text is the display text for the link
                      type: string
