@@ -483,10 +483,6 @@ func (c *ClusterClassBuilder) WithWorkerMachinePoolClasses(mpcs ...clusterv1.Mac
483
483
// Build takes the objects and variables in the ClusterClass builder and uses them to create a ClusterClass object.
484
484
func (c * ClusterClassBuilder ) Build () * clusterv1.ClusterClass {
485
485
obj := & clusterv1.ClusterClass {
486
- TypeMeta : metav1.TypeMeta {
487
- Kind : "ClusterClass" ,
488
- APIVersion : clusterv1 .GroupVersion .String (),
489
- },
490
486
ObjectMeta : metav1.ObjectMeta {
491
487
Name : c .name ,
492
488
Namespace : c .namespace ,
@@ -1703,10 +1699,6 @@ func (m *MachinePoolBuilder) WithMinReadySeconds(minReadySeconds int32) *Machine
1703
1699
// Build creates a new MachinePool with the variables and objects passed to the MachinePoolBuilder.
1704
1700
func (m * MachinePoolBuilder ) Build () * clusterv1.MachinePool {
1705
1701
obj := & clusterv1.MachinePool {
1706
- TypeMeta : metav1.TypeMeta {
1707
- Kind : "MachinePool" ,
1708
- APIVersion : clusterv1 .GroupVersion .String (),
1709
- },
1710
1702
ObjectMeta : metav1.ObjectMeta {
1711
1703
Name : m .name ,
1712
1704
Namespace : m .namespace ,
@@ -1833,10 +1825,6 @@ func (m *MachineDeploymentBuilder) WithMinReadySeconds(minReadySeconds int32) *M
1833
1825
// Build creates a new MachineDeployment with the variables and objects passed to the MachineDeploymentBuilder.
1834
1826
func (m * MachineDeploymentBuilder ) Build () * clusterv1.MachineDeployment {
1835
1827
obj := & clusterv1.MachineDeployment {
1836
- TypeMeta : metav1.TypeMeta {
1837
- Kind : "MachineDeployment" ,
1838
- APIVersion : clusterv1 .GroupVersion .String (),
1839
- },
1840
1828
ObjectMeta : metav1.ObjectMeta {
1841
1829
Name : m .name ,
1842
1830
Namespace : m .namespace ,
@@ -1940,10 +1928,6 @@ func (m *MachineSetBuilder) WithOwnerReferences(ownerRefs []metav1.OwnerReferenc
1940
1928
// Build creates a new MachineSet with the variables and objects passed to the MachineSetBuilder.
1941
1929
func (m * MachineSetBuilder ) Build () * clusterv1.MachineSet {
1942
1930
obj := & clusterv1.MachineSet {
1943
- TypeMeta : metav1.TypeMeta {
1944
- Kind : "MachineSet" ,
1945
- APIVersion : clusterv1 .GroupVersion .String (),
1946
- },
1947
1931
ObjectMeta : metav1.ObjectMeta {
1948
1932
Name : m .name ,
1949
1933
Namespace : m .namespace ,
@@ -2015,10 +1999,6 @@ func (m *MachineBuilder) WithLabels(labels map[string]string) *MachineBuilder {
2015
1999
// Build produces a Machine object from the information passed to the MachineBuilder.
2016
2000
func (m * MachineBuilder ) Build () * clusterv1.Machine {
2017
2001
machine := & clusterv1.Machine {
2018
- TypeMeta : metav1.TypeMeta {
2019
- Kind : "Machine" ,
2020
- APIVersion : clusterv1 .GroupVersion .String (),
2021
- },
2022
2002
ObjectMeta : metav1.ObjectMeta {
2023
2003
Namespace : m .namespace ,
2024
2004
Name : m .name ,
@@ -2150,10 +2130,6 @@ func (m *MachineHealthCheckBuilder) WithMaxUnhealthy(maxUnhealthy *intstr.IntOrS
2150
2130
func (m * MachineHealthCheckBuilder ) Build () * clusterv1.MachineHealthCheck {
2151
2131
// create a MachineHealthCheck with the spec given in the ClusterClass
2152
2132
mhc := & clusterv1.MachineHealthCheck {
2153
- TypeMeta : metav1.TypeMeta {
2154
- Kind : "MachineHealthCheck" ,
2155
- APIVersion : clusterv1 .GroupVersion .String (),
2156
- },
2157
2133
ObjectMeta : metav1.ObjectMeta {
2158
2134
Name : m .name ,
2159
2135
Namespace : m .namespace ,
0 commit comments