apiVersion: proxmox.sankofa.nexus/v1alpha1
kind: ProviderConfig
metadata:
  name: proxmox-provider-config
  namespace: crossplane-system
spec:
  credentials:
    source: Secret
    secretRef:
      namespace: crossplane-system
      name: proxmox-credentials
      key: credentials.json
  sites:
    - name: us-sfvalley
      endpoint: https://ml110-01.sankofa.nexus:8006
      nodes:
        - name: ML110-01
          storage:
            - local-lvm
            - local
          networks:
            - vmbr0
    - name: us-sfvalley-2
      endpoint: https://r630-01.sankofa.nexus:8006
      nodes:
        - name: R630-01
          storage:
            - local-lvm
            - local
          networks:
            - vmbr0
  insecureSkipTLSVerify: false # Set to true only for testing
---
# Secret template - DO NOT COMMIT WITH REAL CREDENTIALS
apiVersion: v1
kind: Secret
metadata:
  name: proxmox-credentials
  namespace: crossplane-system
type: Opaque
stringData:
  credentials.json: |
    {
      "username": "root@pam",
      "password": "CHANGE_ME",
      "token": "optional-api-token"
    }

