---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
  name: managedresources.resources.gardener.cloud
  labels:
    gardener.cloud/deletion-protected: "true"
spec:
  group: resources.gardener.cloud
  versions:
  - name: v1alpha1
    served: true
    storage: true
  version: v1alpha1
  scope: Namespaced
  names:
    plural: managedresources
    singular: managedresource
    kind: ManagedResource
    shortNames:
    - mr
  additionalPrinterColumns:
  - name: Class
    type: string
    description: The class identifies which resource manager is responsible for this ManagedResource.
    JSONPath: .spec.class
  - name: Applied
    type: string
    description: Indicates whether all resources have been applied.
    JSONPath: .status.conditions[?(@.type=="ResourcesApplied")].status
  - name: Healthy
    type: string
    description: Indicates whether all resources are healthy.
    JSONPath: .status.conditions[?(@.type=="ResourcesHealthy")].status
  - name: Age
    type: date
    JSONPath: .metadata.creationTimestamp
  subresources:
    status: {}
