Skip to content

Commit e0e29dc

Browse files
authored
Update filters.go
1 parent 2f4c5c6 commit e0e29dc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

controlplane/kubeadm/internal/filters.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,8 @@ func dropOmittableFields(spec *bootstrapv1.KubeadmConfigSpec) {
544544
// instead the join configuration for the first control plane machine in the
545545
// cluster is emptied out by KCP.
546546
func isKubeadmConfigForJoin(c *bootstrapv1.KubeadmConfig) bool {
547+
c = c.DeepCopy()
548+
c.Spec.JoinConfiguration.Timeouts = bootstrapv1.Timeouts{}
547549
return c.Spec.JoinConfiguration.IsDefined()
548550
}
549551

0 commit comments

Comments
 (0)