Files
rancher/pkg/fleet
Corentin Néau e9b8dd321c Add CA of cluster beside host in local kubeconfig secret (#44700)
* Add CA of cluster beside host in local kubeconfig secret

This should prevent the Fleet agent from failing to reach the management
cluster with errors about a certificate being signed by an unknown
authority.

* Skip API server data population when not running in cluster

When Rancher does not run inside a cluster, as can be the case in local
development setups, populating the API server host and CA would feed
local host kubeconfig data into Rancher (eg. 0.0.0.0 from local
kubeconfigs featuring k3d clusters), which would prevent the Fleet agent
from registering against the management cluster.

---------

Co-authored-by: Mario Manno <mario.manno@suse.com>
2024-03-07 17:16:04 +01:00
..
2021-10-25 14:58:37 -04:00