---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    description: Extension for configuring openshift web console YAML samples.
    displayName: ConsoleYAMLSample
    include.release.openshift.io/self-managed-high-availability: "true"
  creationTimestamp: "2022-03-08T10:13:41Z"
  generation: 1
  managedFields:
  - apiVersion: apiextensions.k8s.io/v1beta1
    fieldsType: FieldsV1
    fieldsV1:
      f:metadata:
        f:annotations:
          .: {}
          f:description: {}
          f:displayName: {}
          f:include.release.openshift.io/self-managed-high-availability: {}
      f:spec:
        f:conversion:
          .: {}
          f:strategy: {}
        f:group: {}
        f:names:
          f:kind: {}
          f:listKind: {}
          f:plural: {}
          f:singular: {}
        f:preserveUnknownFields: {}
        f:scope: {}
        f:validation:
          .: {}
          f:openAPIV3Schema:
            .: {}
            f:description: {}
            f:properties:
              .: {}
              f:apiVersion:
                .: {}
                f:description: {}
                f:type: {}
              f:kind:
                .: {}
                f:description: {}
                f:type: {}
              f:metadata:
                .: {}
                f:type: {}
              f:spec:
                .: {}
                f:description: {}
                f:properties:
                  .: {}
                  f:description:
                    .: {}
                    f:description: {}
                    f:pattern: {}
                    f:type: {}
                  f:snippet:
                    .: {}
                    f:description: {}
                    f:type: {}
                  f:targetResource:
                    .: {}
                    f:description: {}
                    f:properties:
                      .: {}
                      f:apiVersion:
                        .: {}
                        f:description: {}
                        f:type: {}
                      f:kind:
                        .: {}
                        f:description: {}
                        f:type: {}
                    f:type: {}
                  f:title:
                    .: {}
                    f:description: {}
                    f:pattern: {}
                    f:type: {}
                  f:yaml:
                    .: {}
                    f:description: {}
                    f:pattern: {}
                    f:type: {}
                f:required: {}
                f:type: {}
            f:required: {}
            f:type: {}
        f:version: {}
        f:versions: {}
      f:status:
        f:storedVersions: {}
    manager: cluster-version-operator
    operation: Update
    time: "2022-03-08T10:13:41Z"
  - apiVersion: apiextensions.k8s.io/v1
    fieldsType: FieldsV1
    fieldsV1:
      f:status:
        f:acceptedNames:
          f:kind: {}
          f:listKind: {}
          f:plural: {}
          f:singular: {}
        f:conditions: {}
    manager: kube-apiserver
    operation: Update
    time: "2022-03-08T10:13:41Z"
  name: consoleyamlsamples.console.openshift.io
  resourceVersion: "664"
  selfLink: /apis/apiextensions.k8s.io/v1/customresourcedefinitions/consoleyamlsamples.console.openshift.io
  uid: a84b0ff4-cb26-48da-ae3a-ffc73e8d8c31
spec:
  conversion:
    strategy: None
  group: console.openshift.io
  names:
    kind: ConsoleYAMLSample
    listKind: ConsoleYAMLSampleList
    plural: consoleyamlsamples
    singular: consoleyamlsample
  scope: Cluster
  versions:
  - name: v1
    schema:
      openAPIV3Schema:
        description: ConsoleYAMLSample is an extension for customizing OpenShift web console YAML samples.
        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: ConsoleYAMLSampleSpec is the desired YAML sample configuration. Samples will appear with their descriptions in a samples sidebar when creating a resources in the web console.
            properties:
              description:
                description: description of the YAML sample.
                pattern: ^(.|\s)*\S(.|\s)*$
                type: string
              snippet:
                description: snippet indicates that the YAML sample is not the full YAML resource definition, but a fragment that can be inserted into the existing YAML document at the user's cursor.
                type: boolean
              targetResource:
                description: targetResource contains apiVersion and kind of the resource YAML sample is representating.
                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
                type: object
              title:
                description: title of the YAML sample.
                pattern: ^(.|\s)*\S(.|\s)*$
                type: string
              yaml:
                description: yaml is the YAML sample to display.
                pattern: ^(.|\s)*\S(.|\s)*$
                type: string
            required:
            - description
            - targetResource
            - title
            - yaml
            type: object
        required:
        - metadata
        - spec
        type: object
    served: true
    storage: true
status:
  acceptedNames:
    kind: ConsoleYAMLSample
    listKind: ConsoleYAMLSampleList
    plural: consoleyamlsamples
    singular: consoleyamlsample
  conditions:
  - lastTransitionTime: "2022-03-08T10:13:41Z"
    message: no conflicts found
    reason: NoConflicts
    status: "True"
    type: NamesAccepted
  - lastTransitionTime: "2022-03-08T10:13:42Z"
    message: the initial names have been accepted
    reason: InitialNamesAccepted
    status: "True"
    type: Established
  storedVersions:
  - v1
