Skip to content

Fix serverURL and caCertData for non bootstrap token modes#108

Merged
anson627 merged 1 commit intomainfrom
fix-server-url-ca-cert-data
Mar 3, 2026
Merged

Fix serverURL and caCertData for non bootstrap token modes#108
anson627 merged 1 commit intomainfrom
fix-server-url-ca-cert-data

Conversation

@anson627
Copy link
Collaborator

@anson627 anson627 commented Mar 3, 2026

This pull request introduces a new early bootstrap step to the node bootstrap process that automatically populates the Kubernetes API server URL and CA certificate data in the node configuration. This is specifically for non-bootstrap-token authentication modes (Arc, Service Principal, Managed Identity), ensuring that later bootstrap steps (like starting kubelet and NPD) have the necessary cluster connection details. The main changes are as follows:

Cluster Configuration Enrichment:

  • Added a new file cluster_config_enricher.go that defines the clusterConfigEnricher step. This step fetches the AKS cluster admin credentials using Azure SDK, extracts the server URL and CA certificate data from the kubeconfig, and updates the live node configuration accordingly. This ensures that required fields are present for subsequent bootstrap steps in non-bootstrap-token scenarios.

  • Integrated the new clusterConfigEnricher step into the bootstrap sequence in bootstrapper.go, making sure it runs before steps that require the server URL and CA certificate (such as starting kubelet and NPD).

@anson627 anson627 merged commit d65f311 into main Mar 3, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants