Skip to content

Commit 03d960a

Browse files
fix: proxy settings for new CP node joining multi CP-cluster (#132)
This commit passes the *_proxy configs to cloud init for a controlplane node that needs to join the existing cluster node, to prevent *_proxy files not being written to /capi/etc/ dir. Fixes: #126 Signed-off-by: tizianacatena <[email protected]>
1 parent dd4e119 commit 03d960a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bootstrap/controllers/ck8sconfig_controller.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,9 @@ func (r *CK8sConfigReconciler) joinControlplane(ctx context.Context, scope *Scop
289289
ConfigFileContents: string(joinConfig),
290290
MicroclusterAddress: scope.Config.Spec.ControlPlaneConfig.MicroclusterAddress,
291291
MicroclusterPort: microclusterPort,
292+
HTTPProxy: scope.Config.Spec.HTTPProxy,
293+
HTTPSProxy: scope.Config.Spec.HTTPSProxy,
294+
NoProxy: scope.Config.Spec.NoProxy,
292295
AirGapped: scope.Config.Spec.AirGapped,
293296
SnapstoreProxyScheme: scope.Config.Spec.SnapstoreProxyScheme,
294297
SnapstoreProxyDomain: scope.Config.Spec.SnapstoreProxyDomain,

0 commit comments

Comments
 (0)