apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: statussubresources.argoproj.io
spec:
  conversion:
    strategy: None
  group: argoproj.io
  names:
    kind: StatusSubResource
    listKind: StatusSubResourceList
    plural: statussubresources
    singular: statussubresource
  scope: Namespaced
  versions:
  - name: v1alpha1
    served: true
    storage: true
    subresources:
      status: {}
    schema:
      openAPIV3Schema:
        type: object
        properties:
          apiVersion:
            type: string
          kind:
            type: string
          metadata:
            type: object
          spec:
            type: object
            x-kubernetes-map-type: atomic
            x-kubernetes-preserve-unknown-fields: true
            properties:
              foo:
                type: string
          status:
            type: object
            x-kubernetes-map-type: atomic
            x-kubernetes-preserve-unknown-fields: true
            properties:
              bar:
                type: string

---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: nonstatussubresources.argoproj.io
spec:
  conversion:
    strategy: None
  group: argoproj.io
  names:
    kind: NonStatusSubResource
    listKind: NonStatusSubResourceList
    plural: nonstatussubresources
    singular: nonstatussubresource
  scope: Namespaced
  versions:
  - name: v1alpha1
    served: true
    storage: true
    schema:
      openAPIV3Schema:
        type: object
        properties:
          apiVersion:
            type: string
          kind:
            type: string
          metadata:
            type: object
          spec:
            type: object
            x-kubernetes-map-type: atomic
            x-kubernetes-preserve-unknown-fields: true
            properties:
              foo:
                type: string
          status:
            type: object
            x-kubernetes-map-type: atomic
            x-kubernetes-preserve-unknown-fields: true
            properties:
              bar:
                type: string
