apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    cert-manager.io/inject-ca-from: dex/dex-operator-cert
    controller-gen.kubebuilder.io/version: v0.4.1
  name: dexclients.dex.karavel.io
spec:
  group: dex.karavel.io
  names:
    kind: DexClient
    listKind: DexClientList
    plural: dexclients
    singular: dexclient
  scope: Namespaced
  versions:
  - additionalPrinterColumns:
    - jsonPath: .status.clientID
      name: Client ID
      type: string
    - jsonPath: .spec.public
      name: Public
      type: boolean
    - jsonPath: .status.ready
      name: Ready
      type: boolean
    - jsonPath: .status.message
      name: Message
      type: string
    - jsonPath: .metadata.creationTimestamp
      name: Age
      type: date
    name: v1alpha1
    schema:
      openAPIV3Schema:
        description: DexClient is the Schema for the dexclients API
        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: DexClientSpec defines the desired state of DexClient
            properties:
              clientIDKey:
                default: clientID
                description: ClientIDKey allows to override the key used in the generated
                  Secret for the clientID
                type: string
              clientSecretKey:
                default: clientSecret
                description: ClientSecretKey allows to override the key used in the
                  generated Secret for the clientSecret
                type: string
              instanceRef:
                description: InstanceRef is used to select the target Dex instance
                  Cannot be updated
                properties:
                  name:
                    description: Name is the object name for the Dex instance Cannot
                      be updated
                    type: string
                  namespace:
                    description: Namespace is the object name for the Dex instance
                      Cannot be updated If empty will default to the same namespace
                      as the DexClient
                    type: string
                required:
                - name
                type: object
              issuerURLKey:
                default: issuerURL
                description: IssuerKey allows to override the key used in the generated
                  Secret for the issuer URL
                type: string
              name:
                description: Name is the Dex client name
                type: string
              public:
                default: false
                description: Public marks the client as a public OAuth client
                type: boolean
              redirectUris:
                description: RedirectUris is the list of callback URIs for the client
                format: uri
                items:
                  type: string
                minItems: 1
                type: array
              template:
                description: Template will be merged with the generated Secret object
                properties:
                  metadata:
                    properties:
                      annotations:
                        additionalProperties:
                          type: string
                        description: 'Annotations is an unstructured key value map
                          stored with a resource that may be set by external tools
                          to store and retrieve arbitrary metadata. They are not queryable
                          and should be preserved when modifying objects. More info:
                          http://kubernetes.io/docs/user-guide/annotations'
                        type: object
                      labels:
                        additionalProperties:
                          type: string
                        description: 'Map of string keys and values that can be used
                          to organize and categorize (scope and select) objects. May
                          match selectors of replication controllers and services.
                          More info: http://kubernetes.io/docs/user-guide/labels'
                        type: object
                      name:
                        description: 'Name must be unique within a namespace. Is required
                          when creating resources, although some resources may allow
                          a client to request the generation of an appropriate name
                          automatically. Name is primarily intended for creation idempotence
                          and configuration definition. Cannot be updated. More info:
                          http://kubernetes.io/docs/user-guide/identifiers#names'
                        type: string
                    type: object
                type: object
            required:
            - instanceRef
            - name
            - redirectUris
            type: object
          status:
            description: DexClientStatus defines the observed state of DexClient
            properties:
              clientID:
                description: ClientID is the generated OAuth client_id for this client
                type: string
              message:
                description: Message is a human-readable message indicating details
                  about current operator phase or error.
                type: string
              phase:
                description: Phase is the current phase of the operator.
                type: string
              ready:
                description: Ready will be true if the client is in a ready state
                  and available for use.
                type: boolean
            required:
            - message
            - phase
            - ready
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
status:
  acceptedNames:
    kind: ""
    plural: ""
  conditions: []
  storedVersions: []
