github.com/operator-framework/operator-lifecycle-manager@v0.30.0/pkg/controller/operators/testdata/fixtures/crd.yaml (about)

     1  apiVersion: apiextensions.k8s.io/v1
     2  kind: CustomResourceDefinition
     3  metadata:
     4    name: foos.baz.com
     5  spec:
     6    conversion:
     7      strategy: None
     8    group: baz.com
     9    names:
    10      kind: Foo
    11      listKind: FooList
    12      plural: foos
    13      singular: foo
    14    scope: Namespaced
    15    versions:
    16    - name: v1
    17      schema:
    18        openAPIV3Schema:
    19          description: A simple foo.
    20          properties:
    21            apiVersion:
    22              description: 'APIVersion defines the versioned schema of this representation
    23                of an object. Servers should convert recognized schemas to the latest
    24                internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
    25              type: string
    26            kind:
    27              description: 'Kind is a string value representing the REST resource this
    28                object represents. Servers may infer this from the endpoint the client
    29                submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
    30              type: string
    31            metadata:
    32              type: object
    33            spec:
    34              description: FooSpec is the spec for a Foo resource.
    35              properties:
    36                life:
    37                  description: The meaning of foo.
    38                  type: string
    39              type: object
    40            status:
    41              description: FooStatus is the status for an FooResource.
    42              properties:
    43                lastUpdated:
    44                  description: LastUpdated is a timestamp of the last time the Foo's
    45                    status was Updated.
    46                  format: date-time
    47                  type: string
    48              required:
    49              - lastUpdated
    50              type: object
    51          required:
    52          - metadata
    53          type: object
    54      served: true
    55      storage: true
    56      subresources:
    57        status: {}
    58