sigs.k8s.io/cluster-api@v1.7.1/bootstrap/kubeadm/types/upstreamv1beta2/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 upstreamv1beta2
    22  
    23  import (
    24  	corev1 "k8s.io/api/core/v1"
    25  	"k8s.io/apimachinery/pkg/apis/meta/v1"
    26  	"k8s.io/apimachinery/pkg/runtime"
    27  )
    28  
    29  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    30  func (in *APIEndpoint) DeepCopyInto(out *APIEndpoint) {
    31  	*out = *in
    32  }
    33  
    34  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIEndpoint.
    35  func (in *APIEndpoint) DeepCopy() *APIEndpoint {
    36  	if in == nil {
    37  		return nil
    38  	}
    39  	out := new(APIEndpoint)
    40  	in.DeepCopyInto(out)
    41  	return out
    42  }
    43  
    44  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    45  func (in *APIServer) DeepCopyInto(out *APIServer) {
    46  	*out = *in
    47  	in.ControlPlaneComponent.DeepCopyInto(&out.ControlPlaneComponent)
    48  	if in.CertSANs != nil {
    49  		in, out := &in.CertSANs, &out.CertSANs
    50  		*out = make([]string, len(*in))
    51  		copy(*out, *in)
    52  	}
    53  	if in.TimeoutForControlPlane != nil {
    54  		in, out := &in.TimeoutForControlPlane, &out.TimeoutForControlPlane
    55  		*out = new(v1.Duration)
    56  		**out = **in
    57  	}
    58  }
    59  
    60  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIServer.
    61  func (in *APIServer) DeepCopy() *APIServer {
    62  	if in == nil {
    63  		return nil
    64  	}
    65  	out := new(APIServer)
    66  	in.DeepCopyInto(out)
    67  	return out
    68  }
    69  
    70  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    71  func (in *BootstrapToken) DeepCopyInto(out *BootstrapToken) {
    72  	*out = *in
    73  	if in.Token != nil {
    74  		in, out := &in.Token, &out.Token
    75  		*out = new(BootstrapTokenString)
    76  		**out = **in
    77  	}
    78  	if in.TTL != nil {
    79  		in, out := &in.TTL, &out.TTL
    80  		*out = new(v1.Duration)
    81  		**out = **in
    82  	}
    83  	if in.Expires != nil {
    84  		in, out := &in.Expires, &out.Expires
    85  		*out = (*in).DeepCopy()
    86  	}
    87  	if in.Usages != nil {
    88  		in, out := &in.Usages, &out.Usages
    89  		*out = make([]string, len(*in))
    90  		copy(*out, *in)
    91  	}
    92  	if in.Groups != nil {
    93  		in, out := &in.Groups, &out.Groups
    94  		*out = make([]string, len(*in))
    95  		copy(*out, *in)
    96  	}
    97  }
    98  
    99  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BootstrapToken.
   100  func (in *BootstrapToken) DeepCopy() *BootstrapToken {
   101  	if in == nil {
   102  		return nil
   103  	}
   104  	out := new(BootstrapToken)
   105  	in.DeepCopyInto(out)
   106  	return out
   107  }
   108  
   109  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   110  func (in *BootstrapTokenDiscovery) DeepCopyInto(out *BootstrapTokenDiscovery) {
   111  	*out = *in
   112  	if in.CACertHashes != nil {
   113  		in, out := &in.CACertHashes, &out.CACertHashes
   114  		*out = make([]string, len(*in))
   115  		copy(*out, *in)
   116  	}
   117  }
   118  
   119  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BootstrapTokenDiscovery.
   120  func (in *BootstrapTokenDiscovery) DeepCopy() *BootstrapTokenDiscovery {
   121  	if in == nil {
   122  		return nil
   123  	}
   124  	out := new(BootstrapTokenDiscovery)
   125  	in.DeepCopyInto(out)
   126  	return out
   127  }
   128  
   129  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   130  func (in *BootstrapTokenString) DeepCopyInto(out *BootstrapTokenString) {
   131  	*out = *in
   132  }
   133  
   134  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BootstrapTokenString.
   135  func (in *BootstrapTokenString) DeepCopy() *BootstrapTokenString {
   136  	if in == nil {
   137  		return nil
   138  	}
   139  	out := new(BootstrapTokenString)
   140  	in.DeepCopyInto(out)
   141  	return out
   142  }
   143  
   144  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   145  func (in *ClusterConfiguration) DeepCopyInto(out *ClusterConfiguration) {
   146  	*out = *in
   147  	out.TypeMeta = in.TypeMeta
   148  	in.Etcd.DeepCopyInto(&out.Etcd)
   149  	out.Networking = in.Networking
   150  	in.APIServer.DeepCopyInto(&out.APIServer)
   151  	in.ControllerManager.DeepCopyInto(&out.ControllerManager)
   152  	in.Scheduler.DeepCopyInto(&out.Scheduler)
   153  	out.DNS = in.DNS
   154  	if in.FeatureGates != nil {
   155  		in, out := &in.FeatureGates, &out.FeatureGates
   156  		*out = make(map[string]bool, len(*in))
   157  		for key, val := range *in {
   158  			(*out)[key] = val
   159  		}
   160  	}
   161  }
   162  
   163  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterConfiguration.
   164  func (in *ClusterConfiguration) DeepCopy() *ClusterConfiguration {
   165  	if in == nil {
   166  		return nil
   167  	}
   168  	out := new(ClusterConfiguration)
   169  	in.DeepCopyInto(out)
   170  	return out
   171  }
   172  
   173  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   174  func (in *ClusterConfiguration) DeepCopyObject() runtime.Object {
   175  	if c := in.DeepCopy(); c != nil {
   176  		return c
   177  	}
   178  	return nil
   179  }
   180  
   181  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   182  func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus) {
   183  	*out = *in
   184  	out.TypeMeta = in.TypeMeta
   185  	if in.APIEndpoints != nil {
   186  		in, out := &in.APIEndpoints, &out.APIEndpoints
   187  		*out = make(map[string]APIEndpoint, len(*in))
   188  		for key, val := range *in {
   189  			(*out)[key] = val
   190  		}
   191  	}
   192  }
   193  
   194  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterStatus.
   195  func (in *ClusterStatus) DeepCopy() *ClusterStatus {
   196  	if in == nil {
   197  		return nil
   198  	}
   199  	out := new(ClusterStatus)
   200  	in.DeepCopyInto(out)
   201  	return out
   202  }
   203  
   204  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   205  func (in *ClusterStatus) DeepCopyObject() runtime.Object {
   206  	if c := in.DeepCopy(); c != nil {
   207  		return c
   208  	}
   209  	return nil
   210  }
   211  
   212  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   213  func (in *ControlPlaneComponent) DeepCopyInto(out *ControlPlaneComponent) {
   214  	*out = *in
   215  	if in.ExtraArgs != nil {
   216  		in, out := &in.ExtraArgs, &out.ExtraArgs
   217  		*out = make(map[string]string, len(*in))
   218  		for key, val := range *in {
   219  			(*out)[key] = val
   220  		}
   221  	}
   222  	if in.ExtraVolumes != nil {
   223  		in, out := &in.ExtraVolumes, &out.ExtraVolumes
   224  		*out = make([]HostPathMount, len(*in))
   225  		copy(*out, *in)
   226  	}
   227  }
   228  
   229  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControlPlaneComponent.
   230  func (in *ControlPlaneComponent) DeepCopy() *ControlPlaneComponent {
   231  	if in == nil {
   232  		return nil
   233  	}
   234  	out := new(ControlPlaneComponent)
   235  	in.DeepCopyInto(out)
   236  	return out
   237  }
   238  
   239  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   240  func (in *DNS) DeepCopyInto(out *DNS) {
   241  	*out = *in
   242  	out.ImageMeta = in.ImageMeta
   243  }
   244  
   245  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNS.
   246  func (in *DNS) DeepCopy() *DNS {
   247  	if in == nil {
   248  		return nil
   249  	}
   250  	out := new(DNS)
   251  	in.DeepCopyInto(out)
   252  	return out
   253  }
   254  
   255  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   256  func (in *Discovery) DeepCopyInto(out *Discovery) {
   257  	*out = *in
   258  	if in.BootstrapToken != nil {
   259  		in, out := &in.BootstrapToken, &out.BootstrapToken
   260  		*out = new(BootstrapTokenDiscovery)
   261  		(*in).DeepCopyInto(*out)
   262  	}
   263  	if in.File != nil {
   264  		in, out := &in.File, &out.File
   265  		*out = new(FileDiscovery)
   266  		**out = **in
   267  	}
   268  	if in.Timeout != nil {
   269  		in, out := &in.Timeout, &out.Timeout
   270  		*out = new(v1.Duration)
   271  		**out = **in
   272  	}
   273  }
   274  
   275  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Discovery.
   276  func (in *Discovery) DeepCopy() *Discovery {
   277  	if in == nil {
   278  		return nil
   279  	}
   280  	out := new(Discovery)
   281  	in.DeepCopyInto(out)
   282  	return out
   283  }
   284  
   285  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   286  func (in *Etcd) DeepCopyInto(out *Etcd) {
   287  	*out = *in
   288  	if in.Local != nil {
   289  		in, out := &in.Local, &out.Local
   290  		*out = new(LocalEtcd)
   291  		(*in).DeepCopyInto(*out)
   292  	}
   293  	if in.External != nil {
   294  		in, out := &in.External, &out.External
   295  		*out = new(ExternalEtcd)
   296  		(*in).DeepCopyInto(*out)
   297  	}
   298  }
   299  
   300  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Etcd.
   301  func (in *Etcd) DeepCopy() *Etcd {
   302  	if in == nil {
   303  		return nil
   304  	}
   305  	out := new(Etcd)
   306  	in.DeepCopyInto(out)
   307  	return out
   308  }
   309  
   310  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   311  func (in *ExternalEtcd) DeepCopyInto(out *ExternalEtcd) {
   312  	*out = *in
   313  	if in.Endpoints != nil {
   314  		in, out := &in.Endpoints, &out.Endpoints
   315  		*out = make([]string, len(*in))
   316  		copy(*out, *in)
   317  	}
   318  }
   319  
   320  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalEtcd.
   321  func (in *ExternalEtcd) DeepCopy() *ExternalEtcd {
   322  	if in == nil {
   323  		return nil
   324  	}
   325  	out := new(ExternalEtcd)
   326  	in.DeepCopyInto(out)
   327  	return out
   328  }
   329  
   330  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   331  func (in *FileDiscovery) DeepCopyInto(out *FileDiscovery) {
   332  	*out = *in
   333  }
   334  
   335  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileDiscovery.
   336  func (in *FileDiscovery) DeepCopy() *FileDiscovery {
   337  	if in == nil {
   338  		return nil
   339  	}
   340  	out := new(FileDiscovery)
   341  	in.DeepCopyInto(out)
   342  	return out
   343  }
   344  
   345  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   346  func (in *HostPathMount) DeepCopyInto(out *HostPathMount) {
   347  	*out = *in
   348  }
   349  
   350  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostPathMount.
   351  func (in *HostPathMount) DeepCopy() *HostPathMount {
   352  	if in == nil {
   353  		return nil
   354  	}
   355  	out := new(HostPathMount)
   356  	in.DeepCopyInto(out)
   357  	return out
   358  }
   359  
   360  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   361  func (in *ImageMeta) DeepCopyInto(out *ImageMeta) {
   362  	*out = *in
   363  }
   364  
   365  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageMeta.
   366  func (in *ImageMeta) DeepCopy() *ImageMeta {
   367  	if in == nil {
   368  		return nil
   369  	}
   370  	out := new(ImageMeta)
   371  	in.DeepCopyInto(out)
   372  	return out
   373  }
   374  
   375  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   376  func (in *InitConfiguration) DeepCopyInto(out *InitConfiguration) {
   377  	*out = *in
   378  	out.TypeMeta = in.TypeMeta
   379  	if in.BootstrapTokens != nil {
   380  		in, out := &in.BootstrapTokens, &out.BootstrapTokens
   381  		*out = make([]BootstrapToken, len(*in))
   382  		for i := range *in {
   383  			(*in)[i].DeepCopyInto(&(*out)[i])
   384  		}
   385  	}
   386  	in.NodeRegistration.DeepCopyInto(&out.NodeRegistration)
   387  	out.LocalAPIEndpoint = in.LocalAPIEndpoint
   388  }
   389  
   390  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InitConfiguration.
   391  func (in *InitConfiguration) DeepCopy() *InitConfiguration {
   392  	if in == nil {
   393  		return nil
   394  	}
   395  	out := new(InitConfiguration)
   396  	in.DeepCopyInto(out)
   397  	return out
   398  }
   399  
   400  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   401  func (in *InitConfiguration) DeepCopyObject() runtime.Object {
   402  	if c := in.DeepCopy(); c != nil {
   403  		return c
   404  	}
   405  	return nil
   406  }
   407  
   408  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   409  func (in *JoinConfiguration) DeepCopyInto(out *JoinConfiguration) {
   410  	*out = *in
   411  	out.TypeMeta = in.TypeMeta
   412  	in.NodeRegistration.DeepCopyInto(&out.NodeRegistration)
   413  	in.Discovery.DeepCopyInto(&out.Discovery)
   414  	if in.ControlPlane != nil {
   415  		in, out := &in.ControlPlane, &out.ControlPlane
   416  		*out = new(JoinControlPlane)
   417  		**out = **in
   418  	}
   419  }
   420  
   421  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JoinConfiguration.
   422  func (in *JoinConfiguration) DeepCopy() *JoinConfiguration {
   423  	if in == nil {
   424  		return nil
   425  	}
   426  	out := new(JoinConfiguration)
   427  	in.DeepCopyInto(out)
   428  	return out
   429  }
   430  
   431  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   432  func (in *JoinConfiguration) DeepCopyObject() runtime.Object {
   433  	if c := in.DeepCopy(); c != nil {
   434  		return c
   435  	}
   436  	return nil
   437  }
   438  
   439  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   440  func (in *JoinControlPlane) DeepCopyInto(out *JoinControlPlane) {
   441  	*out = *in
   442  	out.LocalAPIEndpoint = in.LocalAPIEndpoint
   443  }
   444  
   445  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JoinControlPlane.
   446  func (in *JoinControlPlane) DeepCopy() *JoinControlPlane {
   447  	if in == nil {
   448  		return nil
   449  	}
   450  	out := new(JoinControlPlane)
   451  	in.DeepCopyInto(out)
   452  	return out
   453  }
   454  
   455  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   456  func (in *LocalEtcd) DeepCopyInto(out *LocalEtcd) {
   457  	*out = *in
   458  	out.ImageMeta = in.ImageMeta
   459  	if in.ExtraArgs != nil {
   460  		in, out := &in.ExtraArgs, &out.ExtraArgs
   461  		*out = make(map[string]string, len(*in))
   462  		for key, val := range *in {
   463  			(*out)[key] = val
   464  		}
   465  	}
   466  	if in.ServerCertSANs != nil {
   467  		in, out := &in.ServerCertSANs, &out.ServerCertSANs
   468  		*out = make([]string, len(*in))
   469  		copy(*out, *in)
   470  	}
   471  	if in.PeerCertSANs != nil {
   472  		in, out := &in.PeerCertSANs, &out.PeerCertSANs
   473  		*out = make([]string, len(*in))
   474  		copy(*out, *in)
   475  	}
   476  }
   477  
   478  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalEtcd.
   479  func (in *LocalEtcd) DeepCopy() *LocalEtcd {
   480  	if in == nil {
   481  		return nil
   482  	}
   483  	out := new(LocalEtcd)
   484  	in.DeepCopyInto(out)
   485  	return out
   486  }
   487  
   488  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   489  func (in *Networking) DeepCopyInto(out *Networking) {
   490  	*out = *in
   491  }
   492  
   493  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Networking.
   494  func (in *Networking) DeepCopy() *Networking {
   495  	if in == nil {
   496  		return nil
   497  	}
   498  	out := new(Networking)
   499  	in.DeepCopyInto(out)
   500  	return out
   501  }
   502  
   503  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   504  func (in *NodeRegistrationOptions) DeepCopyInto(out *NodeRegistrationOptions) {
   505  	*out = *in
   506  	if in.Taints != nil {
   507  		in, out := &in.Taints, &out.Taints
   508  		*out = make([]corev1.Taint, len(*in))
   509  		for i := range *in {
   510  			(*in)[i].DeepCopyInto(&(*out)[i])
   511  		}
   512  	}
   513  	if in.KubeletExtraArgs != nil {
   514  		in, out := &in.KubeletExtraArgs, &out.KubeletExtraArgs
   515  		*out = make(map[string]string, len(*in))
   516  		for key, val := range *in {
   517  			(*out)[key] = val
   518  		}
   519  	}
   520  	if in.IgnorePreflightErrors != nil {
   521  		in, out := &in.IgnorePreflightErrors, &out.IgnorePreflightErrors
   522  		*out = make([]string, len(*in))
   523  		copy(*out, *in)
   524  	}
   525  }
   526  
   527  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeRegistrationOptions.
   528  func (in *NodeRegistrationOptions) DeepCopy() *NodeRegistrationOptions {
   529  	if in == nil {
   530  		return nil
   531  	}
   532  	out := new(NodeRegistrationOptions)
   533  	in.DeepCopyInto(out)
   534  	return out
   535  }