apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: zeroscaledobjects.scaling.xiny.dev
spec:
  group: scaling.xiny.dev
  versions:
    - name: v1alpha1
      served: true
      storage: true
      subresources:
        status: { }
      schema:
        openAPIV3Schema:
          type: object
          x-kubernetes-preserve-unknown-fields: true
      additionalPrinterColumns:
        - name: Replicas
          type: string
          jsonPath: ".status.replicas"
        - name: Ready
          type: string
          jsonPath: ".status.conditions[?(@.type=='Ready')].status"
        - name: Reason
          type: string
          jsonPath: ".status.conditions[?(@.type=='Ready')].reason"
  names:
    kind: ZeroScaledObject
    plural: zeroscaledobjects
    singular: zeroscaledobject
    categories:
      - all
    shortNames:
      - zso
  scope: Namespaced
