apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: providerconfigs.proxmox.sankofa.nexus
spec:
  group: proxmox.sankofa.nexus
  names:
    kind: ProviderConfig
    listKind: ProviderConfigList
    plural: providerconfigs
    singular: providerconfig
  scope: Cluster
  versions:
  - name: v1alpha1
    served: true
    storage: true
    schema:
      openAPIV3Schema:
        type: object
        properties:
          spec:
            type: object
            properties:
              credentials:
                type: object
                properties:
                  source:
                    type: string
                  secretRef:
                    type: object
                    properties:
                      name:
                        type: string
                      namespace:
                        type: string
                      key:
                        type: string
              sites:
                type: array
                items:
                  type: object
                  properties:
                    name:
                      type: string
                    endpoint:
                      type: string
                    node:
                      type: string
                    insecureSkipTLSVerify:
                      type: boolean
            required:
            - credentials
          status:
            type: object
            properties:
              conditions:
                type: array
                items:
                  type: object
    subresources:
      status: {}

