...

Text file src/sigs.k8s.io/controller-runtime/pkg/envtest/testdata/crdv1_original/example_multiversion_crd1.yaml

Documentation: sigs.k8s.io/controller-runtime/pkg/envtest/testdata/crdv1_original

     1apiVersion: apiextensions.k8s.io/v1
     2kind: CustomResourceDefinition
     3metadata:
     4  name: drivers.crew.example.com
     5spec:
     6  group: crew.example.com
     7  names:
     8    kind: Driver
     9    plural: drivers
    10  scope: ""
    11  versions:
    12  - name: v1
    13    served: true
    14    storage: true
    15    schema:
    16      openAPIV3Schema:
    17        description: Driver is the Schema for the drivers API
    18        properties:
    19          apiVersion:
    20            description: 'APIVersion defines the versioned schema of this representation
    21              of an object. Servers should convert recognized schemas to the latest
    22              internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
    23            type: string
    24          kind:
    25            description: 'Kind is a string value representing the REST resource this
    26              object represents. Servers may infer this from the endpoint the client
    27              submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
    28            type: string
    29          spec:
    30            type: object
    31          status:
    32            type: object
    33        type: object
    34  - name: v2
    35    served: true
    36    storage: false
    37    schema:
    38      openAPIV3Schema:
    39        description: Driver is the Schema for the drivers API
    40        properties:
    41          apiVersion:
    42            description: 'APIVersion defines the versioned schema of this representation
    43              of an object. Servers should convert recognized schemas to the latest
    44              internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
    45            type: string
    46          kind:
    47            description: 'Kind is a string value representing the REST resource this
    48              object represents. Servers may infer this from the endpoint the client
    49              submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
    50            type: string
    51          spec:
    52            type: object
    53          status:
    54            type: object
    55        type: object
    56status:
    57  acceptedNames:
    58    kind: ""
    59    plural: ""
    60  conditions: []
    61  storedVersions: []

View as plain text