# Source: kuberhealthy/crds/khstate.yaml---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: khstates.comcast.github.io
  annotations:
    meta.helm.sh/release-name: 'kuberhealthy'
  labels:
    gitops.jenkins-x.io/pipeline: 'customresourcedefinitions'
spec:
  group: comcast.github.io
  versions:
    - name: v1
      served: true
      storage: true
      additionalPrinterColumns:
        - description: OK status
          jsonPath: .spec.OK
          name: OK
          type: string
        - description: Last Run
          jsonPath: .spec.LastRun
          name: Age LastRun
          type: date
        - description: Age
          jsonPath: .metadata.creationTimestamp
          name: Age
          type: date
      schema:
        openAPIV3Schema:
          description: KuberhealthyState represents the data in the CRD for configuring
            an the state of khjobs or khchecks for Kuberhealthy
          properties:
            apiVersion:
              description: 'APIVersion defines the versioned schema of this representation
                of an object. Servers should convert recognized schemas to the latest
                internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
              type: string
            kind:
              description: 'Kind is a string value representing the REST resource this
                object represents. Servers may infer this from the endpoint the client
                submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
              type: string
            metadata:
              type: object
            spec:
              description: Spec holds the desired state of the KuberhealthyState (from
                the client).
              properties:
                AuthoritativePod:
                  type: string
                Errors:
                  items:
                    type: string
                  type: array
                LastRun:
                  format: date-time
                  nullable: true
                  type: string
                Namespace:
                  type: string
                Node:
                  type: string
                OK:
                  type: boolean
                RunDuration:
                  type: string
                khWorkload:
                  description: 'KHWorkload is used to describe the different types of
                    kuberhealthy workloads: KhCheck or KHJob'
                  nullable: true
                  type: string
                uuid:
                  type: string
              required:
              - AuthoritativePod
              - Errors
              - Namespace
              - Node
              - OK
              - RunDuration
              - uuid
              type: object
          type: object
  scope: Namespaced
  names:
    plural: khstates
    singular: khstate
    kind: KuberhealthyState
    shortNames:
      - khs