rancher-sandbox / cluster-api-provider-harvester

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

Review Heathcheck func to incorporate other authentication methods #8

Open belgaied2 opened 6 months ago

belgaied2 commented 6 months ago

In the code line: https://github.com/rancher-sandbox/cluster-api-provider-harvester/blob/main/util/util.go#L54, the Healthcheck func seems to suppose authentication is using a Bearer Token. However, it might be that the Harvester Kubeconfig relies on Certificates.

Check if all that works correctly and improve if needed.