Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cluster-template-external-creds: Fix name of the Secret #233

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

tbabej
Copy link
Contributor

@tbabej tbabej commented Jun 9, 2024

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.

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.
Copy link

sonarcloud bot commented Jun 9, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@wikkyk wikkyk enabled auto-merge (rebase) June 10, 2024 08:21
@wikkyk wikkyk added the kind/bug Something isn't working label Jun 10, 2024
@wikkyk wikkyk added the go Pull requests that update Go code label Jun 10, 2024
@wikkyk
Copy link
Collaborator

wikkyk commented Jun 10, 2024

Good catch, thank you!

@wikkyk wikkyk merged commit 03179ef into ionos-cloud:main Jun 10, 2024
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go Pull requests that update Go code kind/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants