sigs.k8s.io/cluster-api@v1.6.3/internal/apis/controlplane/kubeadm/v1alpha3/zz_generated.deepcopy.go (about) 1 //go:build !ignore_autogenerated 2 3 /* 4 Copyright The Kubernetes Authors. 5 6 Licensed under the Apache License, Version 2.0 (the "License"); 7 you may not use this file except in compliance with the License. 8 You may obtain a copy of the License at 9 10 http://www.apache.org/licenses/LICENSE-2.0 11 12 Unless required by applicable law or agreed to in writing, software 13 distributed under the License is distributed on an "AS IS" BASIS, 14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 See the License for the specific language governing permissions and 16 limitations under the License. 17 */ 18 19 // Code generated by controller-gen. DO NOT EDIT. 20 21 package v1alpha3 22 23 import ( 24 "k8s.io/apimachinery/pkg/apis/meta/v1" 25 "k8s.io/apimachinery/pkg/runtime" 26 "k8s.io/apimachinery/pkg/util/intstr" 27 apiv1alpha3 "sigs.k8s.io/cluster-api/internal/apis/core/v1alpha3" 28 ) 29 30 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 31 func (in *KubeadmControlPlane) DeepCopyInto(out *KubeadmControlPlane) { 32 *out = *in 33 out.TypeMeta = in.TypeMeta 34 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 35 in.Spec.DeepCopyInto(&out.Spec) 36 in.Status.DeepCopyInto(&out.Status) 37 } 38 39 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeadmControlPlane. 40 func (in *KubeadmControlPlane) DeepCopy() *KubeadmControlPlane { 41 if in == nil { 42 return nil 43 } 44 out := new(KubeadmControlPlane) 45 in.DeepCopyInto(out) 46 return out 47 } 48 49 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 50 func (in *KubeadmControlPlane) DeepCopyObject() runtime.Object { 51 if c := in.DeepCopy(); c != nil { 52 return c 53 } 54 return nil 55 } 56 57 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 58 func (in *KubeadmControlPlaneList) DeepCopyInto(out *KubeadmControlPlaneList) { 59 *out = *in 60 out.TypeMeta = in.TypeMeta 61 in.ListMeta.DeepCopyInto(&out.ListMeta) 62 if in.Items != nil { 63 in, out := &in.Items, &out.Items 64 *out = make([]KubeadmControlPlane, len(*in)) 65 for i := range *in { 66 (*in)[i].DeepCopyInto(&(*out)[i]) 67 } 68 } 69 } 70 71 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeadmControlPlaneList. 72 func (in *KubeadmControlPlaneList) DeepCopy() *KubeadmControlPlaneList { 73 if in == nil { 74 return nil 75 } 76 out := new(KubeadmControlPlaneList) 77 in.DeepCopyInto(out) 78 return out 79 } 80 81 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 82 func (in *KubeadmControlPlaneList) DeepCopyObject() runtime.Object { 83 if c := in.DeepCopy(); c != nil { 84 return c 85 } 86 return nil 87 } 88 89 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 90 func (in *KubeadmControlPlaneSpec) DeepCopyInto(out *KubeadmControlPlaneSpec) { 91 *out = *in 92 if in.Replicas != nil { 93 in, out := &in.Replicas, &out.Replicas 94 *out = new(int32) 95 **out = **in 96 } 97 out.InfrastructureTemplate = in.InfrastructureTemplate 98 in.KubeadmConfigSpec.DeepCopyInto(&out.KubeadmConfigSpec) 99 if in.UpgradeAfter != nil { 100 in, out := &in.UpgradeAfter, &out.UpgradeAfter 101 *out = (*in).DeepCopy() 102 } 103 if in.NodeDrainTimeout != nil { 104 in, out := &in.NodeDrainTimeout, &out.NodeDrainTimeout 105 *out = new(v1.Duration) 106 **out = **in 107 } 108 if in.RolloutStrategy != nil { 109 in, out := &in.RolloutStrategy, &out.RolloutStrategy 110 *out = new(RolloutStrategy) 111 (*in).DeepCopyInto(*out) 112 } 113 } 114 115 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeadmControlPlaneSpec. 116 func (in *KubeadmControlPlaneSpec) DeepCopy() *KubeadmControlPlaneSpec { 117 if in == nil { 118 return nil 119 } 120 out := new(KubeadmControlPlaneSpec) 121 in.DeepCopyInto(out) 122 return out 123 } 124 125 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 126 func (in *KubeadmControlPlaneStatus) DeepCopyInto(out *KubeadmControlPlaneStatus) { 127 *out = *in 128 if in.FailureMessage != nil { 129 in, out := &in.FailureMessage, &out.FailureMessage 130 *out = new(string) 131 **out = **in 132 } 133 if in.Conditions != nil { 134 in, out := &in.Conditions, &out.Conditions 135 *out = make(apiv1alpha3.Conditions, len(*in)) 136 for i := range *in { 137 (*in)[i].DeepCopyInto(&(*out)[i]) 138 } 139 } 140 } 141 142 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeadmControlPlaneStatus. 143 func (in *KubeadmControlPlaneStatus) DeepCopy() *KubeadmControlPlaneStatus { 144 if in == nil { 145 return nil 146 } 147 out := new(KubeadmControlPlaneStatus) 148 in.DeepCopyInto(out) 149 return out 150 } 151 152 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 153 func (in *RollingUpdate) DeepCopyInto(out *RollingUpdate) { 154 *out = *in 155 if in.MaxSurge != nil { 156 in, out := &in.MaxSurge, &out.MaxSurge 157 *out = new(intstr.IntOrString) 158 **out = **in 159 } 160 } 161 162 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RollingUpdate. 163 func (in *RollingUpdate) DeepCopy() *RollingUpdate { 164 if in == nil { 165 return nil 166 } 167 out := new(RollingUpdate) 168 in.DeepCopyInto(out) 169 return out 170 } 171 172 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 173 func (in *RolloutStrategy) DeepCopyInto(out *RolloutStrategy) { 174 *out = *in 175 if in.RollingUpdate != nil { 176 in, out := &in.RollingUpdate, &out.RollingUpdate 177 *out = new(RollingUpdate) 178 (*in).DeepCopyInto(*out) 179 } 180 } 181 182 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RolloutStrategy. 183 func (in *RolloutStrategy) DeepCopy() *RolloutStrategy { 184 if in == nil { 185 return nil 186 } 187 out := new(RolloutStrategy) 188 in.DeepCopyInto(out) 189 return out 190 }