Skip to content

Commit

Permalink
cluster-template-external-creds: Fix name of the Secret
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tbabej authored and wikkyk committed Jun 10, 2024
1 parent 59250f8 commit 03179ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/cluster-template-external-creds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
---
Expand Down

0 comments on commit 03179ef

Please sign in to comment.