apiVersion: v1
kind: Secret
metadata:
  name: {{ include "freeleaps-devops-reconciler.fullname" . }}-secrets
  labels:
    {{- include "freeleaps-devops-reconciler.labels" . | nindent 4 }}
type: Opaque
data:
  # RabbitMQ credentials
  rabbitmq-username: {{ .Values.secrets.rabbitmqCredentials.username | b64enc }}
  rabbitmq-password: {{ .Values.secrets.rabbitmqCredentials.password | b64enc }}
  
  # Jenkins credentials
  jenkins-username: {{ .Values.secrets.jenkinsCredentials.username | b64enc }}
  jenkins-token: {{ .Values.secrets.jenkinsCredentials.token | b64enc }}
  
  # ArgoCD credentials
  argocd-username: {{ .Values.secrets.argocdCredentials.username | b64enc }}
  argocd-password: {{ .Values.secrets.argocdCredentials.password | b64enc }}
  
  # Default Git credentials
  default-git-username: {{ .Values.secrets.defaultGitCredentials.username | b64enc }}
  default-git-password: {{ .Values.secrets.defaultGitCredentials.password | b64enc }}
  
  # Default Docker Registry credentials
  default-docker-registry-username: {{ .Values.secrets.defaultDockerRegistryCredentials.username | b64enc }}
  default-docker-registry-password: {{ .Values.secrets.defaultDockerRegistryCredentials.password | b64enc }}
  
  # Docker Registry PAT credentials
  docker-registry-pat-username: {{ .Values.secrets.dockerRegistryPat.username | b64enc }}
  docker-registry-pat: {{ .Values.secrets.dockerRegistryPat.token | b64enc }}
  
  # Azure Key Vault credentials
  azure-key-vault-endpoint: {{ .Values.secrets.azureKeyVault.endpoint | b64enc }}
  azure-key-vault-client-id: {{ .Values.secrets.azureKeyVault.clientId | b64enc }}
  azure-key-vault-client-secret: {{ .Values.secrets.azureKeyVault.clientSecret | b64enc }}
  azure-key-vault-tenant-id: {{ .Values.secrets.azureKeyVault.tenantId | b64enc }}
  azure-key-vault-resource-group: {{ .Values.secrets.azureKeyVault.resourceGroup | b64enc }}
  azure-key-vault-subscription-id: {{ .Values.secrets.azureKeyVault.subscriptionId | b64enc }}
  azure-key-vault-name: {{ .Values.secrets.azureKeyVault.name | b64enc }}
  
  # Azure DNS credentials
  azure-dns-subscription-id: {{ .Values.secrets.azureDns.subscriptionId | b64enc }}
  azure-dns-tenant-id: {{ .Values.secrets.azureDns.tenantId | b64enc }}
  azure-dns-client-id: {{ .Values.secrets.azureDns.clientId | b64enc }}
  azure-dns-client-secret: {{ .Values.secrets.azureDns.clientSecret | b64enc }}
  azure-dns-resource-group: {{ .Values.secrets.azureDns.resourceGroup | b64enc }}
  azure-dns-zone-name: {{ .Values.secrets.azureDns.zoneName | b64enc }}