apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: servicebindings.servicecatalog.k8s.io
  labels:
    svcat: "true"
spec:
  group: servicecatalog.k8s.io
  scope: Namespaced
  names:
    plural: servicebindings
    singular: servicebinding
    kind: ServiceBinding
    # categories is a list of grouped resources the custom resource belongs to.
    categories:
      - all
      - svcat
  versions:
    - additionalPrinterColumns:
      - name: Service-Instance
        type: string
        jsonPath: .spec.instanceRef.name
      - name: Secret-Name
        type: string
        jsonPath: .spec.secretName
      - name: Status
        type: string
        jsonPath: .status.lastConditionState
      - name: Age
        type: date
        jsonPath: .metadata.creationTimestamp
      name: v1beta1
      served: true
      storage: true
      subresources:
        status: {}
