sigs.k8s.io/controller-runtime@v0.18.2/pkg/envtest/testdata/example_multiversion_crd1.yaml (about)

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