Use data instead of stringData for capmox-variables Secret

stringData is never stored, so kubectl apply reported "configured" on
every run and the capi play was never changed=0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-27 10:35:26 +02:00
co-authored by Claude Opus 5.5
parent 0592608850
commit aaa1ed64e2
3 changed files with 36 additions and 5 deletions
+6 -4
View File
@@ -13,10 +13,12 @@ metadata:
name: capmox-variables
namespace: capmox-system
type: Opaque
stringData:
PROXMOX_URL: "{{ proxmox_url }}"
PROXMOX_TOKEN: "{{ proxmox_token_id }}"
PROXMOX_SECRET: "{{ proxmox_token_secret }}"
# `data`, not `stringData`: stringData is never stored, so `kubectl apply` would report
# "configured" on every run and break the playbook's changed=0.
data:
PROXMOX_URL: {{ proxmox_url | b64encode }}
PROXMOX_TOKEN: {{ proxmox_token_id | b64encode }}
PROXMOX_SECRET: {{ proxmox_token_secret | b64encode }}
{% for p in capi_providers %}
---
apiVersion: operator.cluster.x-k8s.io/v1alpha2