github.com/verrazzano/verrazzano@v1.7.0/pkg/k8sutil/testdata/objects/crd2.yaml (about)

     1  # Copyright (c) 2021, 2022, Oracle and/or its affiliates.
     2  # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
     3  
     4  apiVersion: apiextensions.k8s.io/v1
     5  kind: CustomResourceDefinition
     6  metadata:
     7    # name must match the spec fields below, and be in the form: <plural>.<group>
     8    name: crontabs.stable.example.com
     9  spec:
    10    # group name to use for REST API: /apis/<group>/<version>
    11    group: stable.example.com
    12    # list of versions supported by this CustomResourceDefinition
    13    versions:
    14      - name: v1
    15        # Each version can be enabled/disabled by Served flag.
    16        served: true
    17        # One and only one version must be marked as the storage version.
    18        storage: true
    19        schema:
    20          openAPIV3Schema:
    21            type: object
    22            properties:
    23              spec:
    24                type: object
    25                properties:
    26                  cronSpec:
    27                    type: string
    28                  image:
    29                    type: string
    30                  replicas:
    31                    type: integer
    32    # either Namespaced or Cluster
    33    scope: Namespaced
    34    names:
    35      # plural name to be used in the URL: /apis/<group>/<version>/<plural>
    36      plural: crontabs
    37      # singular name to be used as an alias on the CLI and for display
    38      singular: crontab
    39      # kind is normally the CamelCased singular type. Your resource manifests use this.
    40      kind: CronTab
    41      # shortNames allow shorter string to match your resource on the CLI
    42      shortNames:
    43        - ct
    44  ---
    45  apiVersion: apiextensions.k8s.io/v1
    46  kind: CustomResourceDefinition
    47  metadata:
    48    # name must match the spec fields below, and be in the form: <plural>.<group>
    49    name: crontabs.beta.example.com
    50  spec:
    51    # group name to use for REST API: /apis/<group>/<version>
    52    group: beta.example.com
    53    # list of versions supported by this CustomResourceDefinition
    54    versions:
    55      - name: v1
    56        # Each version can be enabled/disabled by Served flag.
    57        served: true
    58        # One and only one version must be marked as the storage version.
    59        storage: true
    60        schema:
    61          openAPIV3Schema:
    62            type: object
    63            properties:
    64              spec:
    65                type: object
    66                properties:
    67                  cronSpec:
    68                    type: string
    69                  image:
    70                    type: string
    71                  replicas:
    72                    type: integer
    73    # either Namespaced or Cluster
    74    scope: Namespaced
    75    names:
    76      # plural name to be used in the URL: /apis/<group>/<version>/<plural>
    77      plural: crontabs
    78      # singular name to be used as an alias on the CLI and for display
    79      singular: crontab
    80      # kind is normally the CamelCased singular type. Your resource manifests use this.
    81      kind: CronTab
    82      # shortNames allow shorter string to match your resource on the CLI
    83      shortNames:
    84        - ct
    85