Skip to content

Commit 166c60e

Browse files
committed
fixes
1 parent 512c202 commit 166c60e

File tree

2 files changed

+17
-15
lines changed

2 files changed

+17
-15
lines changed

packaging/flavorgen/flavors/clusterclass_generators.go

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,14 @@ func newClusterClass() clusterv1.ClusterClass {
4646
Name: env.ClusterClassNameVar,
4747
},
4848
Spec: clusterv1.ClusterClassSpec{
49-
Infrastructure: clusterv1.LocalObjectTemplate{
50-
Ref: &corev1.ObjectReference{
51-
APIVersion: infrav1.GroupVersion.String(),
52-
Kind: util.TypeToKind(&infrav1.VSphereClusterTemplate{}),
53-
Namespace: env.NamespaceVar,
54-
Name: env.ClusterClassNameVar,
49+
Infrastructure: clusterv1.InfrastructureClass{
50+
LocalObjectTemplate: clusterv1.LocalObjectTemplate{
51+
Ref: &corev1.ObjectReference{
52+
APIVersion: infrav1.GroupVersion.String(),
53+
Kind: util.TypeToKind(&infrav1.VSphereClusterTemplate{}),
54+
Namespace: env.NamespaceVar,
55+
Name: env.ClusterClassNameVar,
56+
},
5557
},
5658
},
5759
ControlPlane: getControlPlaneClass(),
@@ -72,12 +74,14 @@ func newVMWareClusterClass() clusterv1.ClusterClass {
7274
Name: env.ClusterClassNameVar,
7375
},
7476
Spec: clusterv1.ClusterClassSpec{
75-
Infrastructure: clusterv1.LocalObjectTemplate{
76-
Ref: &corev1.ObjectReference{
77-
APIVersion: vmwarev1.GroupVersion.String(),
78-
Kind: util.TypeToKind(&vmwarev1.VSphereClusterTemplate{}),
79-
Namespace: env.NamespaceVar,
80-
Name: env.ClusterClassNameVar,
77+
Infrastructure: clusterv1.InfrastructureClass{
78+
LocalObjectTemplate: clusterv1.LocalObjectTemplate{
79+
Ref: &corev1.ObjectReference{
80+
APIVersion: vmwarev1.GroupVersion.String(),
81+
Kind: util.TypeToKind(&vmwarev1.VSphereClusterTemplate{}),
82+
Namespace: env.NamespaceVar,
83+
Name: env.ClusterClassNameVar,
84+
},
8185
},
8286
},
8387
ControlPlane: getVMWareControlPlaneClass(),

packaging/flavorgen/flavors/generators.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -488,9 +488,7 @@ func ignitionKubeadmInitSpec(files []bootstrapv1.File) bootstrapv1.KubeadmConfig
488488
},
489489
Users: flatcarUsers(),
490490
PreKubeadmCommands: flatcarPreKubeadmCommands(),
491-
// UseExperimentalRetryJoin isn't supported with Ignition bootstrap.
492-
UseExperimentalRetryJoin: false,
493-
Files: files,
491+
Files: files,
494492
}
495493
}
496494

0 commit comments

Comments
 (0)