clastix / kamaji

Kamaji is the Hosted Control Plane Manager for Kubernetes.
https://kamaji.clastix.io
Apache License 2.0
992 stars 90 forks source link

Allow overriding secretKey for kubeadm kubeconfig #408

Closed kvaps closed 4 months ago

kvaps commented 7 months ago

follow up https://github.com/clastix/cluster-api-control-plane-provider-kamaji/pull/78

During reconciliation, the bootstrap provider copies the content from the secret provided by Kamaji, named <cluster>-admin-kubeconfig into a cluster-info configmap of tenant cluster, which then used by kubeadm to join nodes.

This change introduces a new annotation, kamaji.clastix.io/kubeconfig-secret-key, for the TenantControlPlane resource. This annotation instructs kamaji to read the kubeconfig from a specific key (the default one is super-admin.conf).

Example:

kamaji.clastix.io/kubeconfig-secret-key: super-admin.svc

This will instruct the system to use super-admin.svc a kubeconfig with a local service FQDN (introduced by https://github.com/clastix/kamaji/pull/403).

netlify[bot] commented 7 months ago

Deploy Preview for kamaji-documentation canceled.

Name Link
Latest commit 294d70ab7ad7cd49bb6428658ac9230415c2a2ec
Latest deploy log https://app.netlify.com/sites/kamaji-documentation/deploys/65e6da9b2574a60008683546