From 03179efd80c410cf7480061fec01ba8534e75ba9 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sun, 9 Jun 2024 13:49:44 -0400 Subject: [PATCH] cluster-template-external-creds: Fix name of the Secret When using the `cluster-template-external-creds` template with `clusterctl`, the following error is obtained: ``` Error: failed to parse yaml: failed to unmarshal the 3rd yaml document: "apiVersion: v1\nstringData:\n secret: REDACTED\n token: REDACTED\n url: https://REDACTED:8006\nkind: Secret\nmetadata:\n name: \"kind-monk2\"-proxmox-credentials\n labels:\n platform.ionos.com/secret-type: \"proxmox-credentials\"\n": error converting YAML to JSON: yaml: line 7: did not find expected key ``` Fixing the `name` key as outlined by this commit resolves the issue. --- templates/cluster-template-external-creds.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/cluster-template-external-creds.yaml b/templates/cluster-template-external-creds.yaml index a605f713..ac1a817d 100644 --- a/templates/cluster-template-external-creds.yaml +++ b/templates/cluster-template-external-creds.yaml @@ -40,7 +40,7 @@ stringData: url: ${PROXMOX_URL} kind: Secret metadata: - name: "${CLUSTER_NAME}"-proxmox-credentials + name: "${CLUSTER_NAME}-proxmox-credentials" labels: platform.ionos.com/secret-type: "proxmox-credentials" ---