rancher-sandbox / cluster-api-provider-harvester

A Cluster API Infrastructure Provider for Harvester
Apache License 2.0
21 stars 6 forks source link

Bug: Manifest generation uses a wrong kubeconfig for the cloud-config #43

Closed PatrickLaabs closed 2 months ago

PatrickLaabs commented 2 months ago

What happened: When running the clusterctl generate cluster --from https://github.com/rancher-sandbox/cluster-api-provider-harvester/blob/v0.1.2/templates/cluster-template-rke2.yaml -n ${CLUSTER_NAMESPACE} ${CLUSTER_NAME} > harvester-rke2-clusterctl.yaml the generated Manifest has some weird and wrong kubeconfig for the cloud-config, which will be placed in here: https://github.com/rancher-sandbox/cluster-api-provider-harvester/blob/main/templates/cluster-template-rke2.yaml#L568

One might have to manually overwrite the string to the desired base64 string of the harvester kubeconfig.

What did you expect to happen:

A correct pasting of the base64 encoded kubeconfig

How to reproduce it:

Anything else you would like to add: I did not find the cause of this issue adhoc, but I'll dig later into it.

Environment:

belgaied2 commented 2 months ago

This should be solved as of commir 4fe74d12e8790ffe838cd25403048d4d721c8660.