
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.2.5
  creationTimestamp: null
  name: providerconfigs.core.tidbcloud.com
spec:
  additionalPrinterColumns:
  - JSONPath: .spec.project
    name: Project
    type: string
  group: core.tidbcloud.com
  names:
    kind: ProviderConfig
    listKind: ProviderConfigList
    plural: providerconfigs
    singular: providerconfig
  scope: Cluster
  subresources: {}
  validation:
    openAPIV3Schema:
      description: Provider is the Schema for the provider 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: ProviderConfigSpec defines the desired state of ProviderConfig
          properties:
            credentials:
              description: Credentials required to authenticate to this provider.
              properties:
                secretRef:
                  description: A CredentialsSecretRef is a reference to a secret key
                    that contains the credentials that must be used to connect to
                    the provider.
                  properties:
                    key:
                      description: The key to select.
                      type: string
                    name:
                      description: Name of the secret.
                      type: string
                    namespace:
                      description: Namespace of the secret.
                      type: string
                  required:
                  - key
                  - name
                  - namespace
                  type: object
                source:
                  description: Source of the provider credentials.
                  enum:
                  - None
                  - Secret
                  - InjectedIdentity
                  type: string
              required:
              - source
              type: object
            endpoint:
              type: string
            project:
              type: string
          required:
          - credentials
          - endpoint
          - project
          type: object
      type: object
  version: v1alpha1
  versions:
  - name: v1alpha1
    served: true
    storage: true
status:
  acceptedNames:
    kind: ""
    plural: ""
  conditions: []
  storedVersions: []
