apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: credentials.mssql-operator.github.io
spec:
  group: mssql-operator.github.io
  names:
    kind: Credential
    plural: credentials
    shortNames:
    - creds
    singular: credential
  preserveUnknownFields: true
  scope: Namespaced
  versions:
  - name: v1alpha1
    schema:
      openAPIV3Schema:
        properties:
          status:
            properties:
              LastUpdate:
                type: string
              Reason:
                type: string
              Message:
                type: string
              observedGeneration:
                type: integer
            type: object
          spec:
            properties:
              DatabaseSelector:
                properties:
                  matchExpressions:
                    items:
                    - properties:
                        key:
                          type: string
                        operator:
                          type: string
                        values:
                          items:
                          - type: string
                          type: array
                      type: object
                    type: array
                  matchLabels:
                    type: object
                type: object
              Secret:
                properties:
                  Value:
                    type: string
                  SecretKeyRef:
                    properties:
                      key:
                        type: string
                      name:
                        type: string
                      optional:
                        type: boolean
                    type: object
                type: object
              CredentialName:
                type: string
              Identity:
                type: string
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}