github.com/argoproj/argo-cd/v2@v2.10.5/test/e2e/testdata/helm-crd/crds/crd.yaml (about)

     1  apiVersion: apiextensions.k8s.io/v1
     2  kind: CustomResourceDefinition
     3  metadata:
     4    # name must match the spec fields below, and be in the form: <plural>.<group>
     5    name: crontabs.stable.example.com
     6  spec:
     7    # group name to use for REST API: /apis/<group>/<version>
     8    group: stable.example.com
     9    # list of versions supported by this CustomResourceDefinition
    10    versions:
    11      - name: v1
    12        # Each version can be enabled/disabled by Served flag.
    13        served: true
    14        # One and only one version must be marked as the storage version.
    15        storage: true
    16        schema:
    17          openAPIV3Schema:
    18            type: object
    19            properties:
    20              spec:
    21                type: object
    22                properties:
    23                  cronSpec:
    24                    type: string
    25    # either Namespaced or Cluster
    26    scope: Namespaced
    27    names:
    28      # plural name to be used in the URL: /apis/<group>/<version>/<plural>
    29      plural: crontabs
    30      # singular name to be used as an alias on the CLI and for display
    31      singular: crontab
    32      # kind is normally the CamelCased singular type. Your resource manifests use this.
    33      kind: CronTab
    34      # shortNames allow shorter string to match your resource on the CLI
    35      shortNames:
    36      - ct