apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: (devel)
  name: originissuers.cert-manager.k8s.cloudflare.com
spec:
  group: cert-manager.k8s.cloudflare.com
  names:
    kind: OriginIssuer
    listKind: OriginIssuerList
    plural: originissuers
    singular: originissuer
  preserveUnknownFields: false
  scope: Namespaced
  versions:
    - name: v1
      served: true
      storage: true
      schema:
        openAPIV3Schema:
          description: An OriginIssuer represents the Cloudflare Origin CA as an external
            cert-manager isuer. It is scoped to a single namespace, so it can be used
            only by resources in the same namespace.
          type: object
          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: Desired state of the OriginIssuer resource
              type: object
              required:
                - auth
                - requestType
              properties:
                auth:
                  description: Auth configures how to authenticate with the Cloudflare
                    API.
                  type: object
                  properties:
                    serviceKeyRef:
                      description: ServiceKeyRef authenticates with an API Service Key.
                      type: object
                      required:
                        - key
                        - name
                      properties:
                        key:
                          description: Key of the secret to select from. Must be a valid
                            secret key.
                          type: string
                        name:
                          description: Name of the secret in the OriginIssuer's naemspace
                            to select from.
                          type: string
                requestType:
                  description: RequestType is the signature algorithm Cloudflare should
                    use to sign the certificate.
                  type: string
                  enum:
                    - OriginRSA
                    - OriginECC
            status:
              description: Status of the OriginIssuer. This is set and managed automatically.
              type: object
              properties:
                conditions:
                  description: List of status conditions to indicate the status of an
                    OriginIssuer Known condition types are `Ready`.
                  type: array
                  items:
                    description: OriginIssuerCondition contains condition information
                      for the OriginIssuer.
                    type: object
                    required:
                      - status
                      - type
                    properties:
                      lastTransitionTime:
                        description: LastTransitioTime is the timestamp corresponding
                          to the last status change of this condition.
                        type: string
                        format: date-time
                      message:
                        description: Message is a human readable description of the details
                          of the last transition1, complementing reason.
                        type: string
                      reason:
                        description: Reason is a brief machine readable explanation for
                          the condition's last transition.
                        type: string
                      status:
                        description: Status of the condition, one of ('True', 'False',
                          'Unknown')
                        type: string
                        enum:
                          - "True"
                          - "False"
                          - Unknown
                      type:
                        description: Type of the condition, known values are ('Ready')
                        type: string
                        enum:
                          - Ready
