Skip to content

Commit fea6764

Browse files
committed
fix: retrieve controlplane host from Cluster object
1 parent 62214f1 commit fea6764

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bootstrap/eks/controllers/nodeadmconfig_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ func (r *NodeadmConfigReconciler) joinWorker(ctx context.Context, cluster *clust
209209
Mounts: config.Spec.Mounts,
210210
Files: files,
211211
ServiceCIDR: serviceCIDR,
212-
APIServerEndpoint: controlPlane.Spec.ControlPlaneEndpoint.Host,
212+
APIServerEndpoint: cluster.Spec.ControlPlaneEndpoint.Host,
213213
}
214214
if config.Spec.Kubelet != nil {
215215
nodeInput.KubeletFlags = config.Spec.Kubelet.Flags

0 commit comments

Comments
 (0)