github.com/banzaicloud/operator-tools@v0.28.10/pkg/types/zz_generated.deepcopy.go (about)

     1  //go:build !ignore_autogenerated
     2  // +build !ignore_autogenerated
     3  
     4  // Copyright © 2020 Banzai Cloud
     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  // Code generated by controller-gen. DO NOT EDIT.
    19  
    20  package types
    21  
    22  import (
    23  	appsv1 "k8s.io/api/apps/v1"
    24  	"k8s.io/api/core/v1"
    25  	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    26  )
    27  
    28  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    29  func (in *ContainerBase) DeepCopyInto(out *ContainerBase) {
    30  	*out = *in
    31  	if in.Resources != nil {
    32  		in, out := &in.Resources, &out.Resources
    33  		*out = new(v1.ResourceRequirements)
    34  		(*in).DeepCopyInto(*out)
    35  	}
    36  	if in.Command != nil {
    37  		in, out := &in.Command, &out.Command
    38  		*out = make([]string, len(*in))
    39  		copy(*out, *in)
    40  	}
    41  	if in.VolumeMounts != nil {
    42  		in, out := &in.VolumeMounts, &out.VolumeMounts
    43  		*out = make([]v1.VolumeMount, len(*in))
    44  		for i := range *in {
    45  			(*in)[i].DeepCopyInto(&(*out)[i])
    46  		}
    47  	}
    48  	if in.SecurityContext != nil {
    49  		in, out := &in.SecurityContext, &out.SecurityContext
    50  		*out = new(v1.SecurityContext)
    51  		(*in).DeepCopyInto(*out)
    52  	}
    53  	if in.LivenessProbe != nil {
    54  		in, out := &in.LivenessProbe, &out.LivenessProbe
    55  		*out = new(v1.Probe)
    56  		(*in).DeepCopyInto(*out)
    57  	}
    58  	if in.ReadinessProbe != nil {
    59  		in, out := &in.ReadinessProbe, &out.ReadinessProbe
    60  		*out = new(v1.Probe)
    61  		(*in).DeepCopyInto(*out)
    62  	}
    63  }
    64  
    65  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerBase.
    66  func (in *ContainerBase) DeepCopy() *ContainerBase {
    67  	if in == nil {
    68  		return nil
    69  	}
    70  	out := new(ContainerBase)
    71  	in.DeepCopyInto(out)
    72  	return out
    73  }
    74  
    75  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    76  func (in *DaemonSetBase) DeepCopyInto(out *DaemonSetBase) {
    77  	*out = *in
    78  	if in.MetaBase != nil {
    79  		in, out := &in.MetaBase, &out.MetaBase
    80  		*out = new(MetaBase)
    81  		(*in).DeepCopyInto(*out)
    82  	}
    83  	if in.Spec != nil {
    84  		in, out := &in.Spec, &out.Spec
    85  		*out = new(DaemonSetSpecBase)
    86  		(*in).DeepCopyInto(*out)
    87  	}
    88  }
    89  
    90  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaemonSetBase.
    91  func (in *DaemonSetBase) DeepCopy() *DaemonSetBase {
    92  	if in == nil {
    93  		return nil
    94  	}
    95  	out := new(DaemonSetBase)
    96  	in.DeepCopyInto(out)
    97  	return out
    98  }
    99  
   100  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   101  func (in *DaemonSetSpecBase) DeepCopyInto(out *DaemonSetSpecBase) {
   102  	*out = *in
   103  	if in.Selector != nil {
   104  		in, out := &in.Selector, &out.Selector
   105  		*out = new(metav1.LabelSelector)
   106  		(*in).DeepCopyInto(*out)
   107  	}
   108  	if in.UpdateStrategy != nil {
   109  		in, out := &in.UpdateStrategy, &out.UpdateStrategy
   110  		*out = new(appsv1.DaemonSetUpdateStrategy)
   111  		(*in).DeepCopyInto(*out)
   112  	}
   113  	if in.RevisionHistoryLimit != nil {
   114  		in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit
   115  		*out = new(int32)
   116  		**out = **in
   117  	}
   118  	if in.Template != nil {
   119  		in, out := &in.Template, &out.Template
   120  		*out = new(PodTemplateBase)
   121  		(*in).DeepCopyInto(*out)
   122  	}
   123  }
   124  
   125  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaemonSetSpecBase.
   126  func (in *DaemonSetSpecBase) DeepCopy() *DaemonSetSpecBase {
   127  	if in == nil {
   128  		return nil
   129  	}
   130  	out := new(DaemonSetSpecBase)
   131  	in.DeepCopyInto(out)
   132  	return out
   133  }
   134  
   135  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   136  func (in *DeploymentBase) DeepCopyInto(out *DeploymentBase) {
   137  	*out = *in
   138  	if in.MetaBase != nil {
   139  		in, out := &in.MetaBase, &out.MetaBase
   140  		*out = new(MetaBase)
   141  		(*in).DeepCopyInto(*out)
   142  	}
   143  	if in.Spec != nil {
   144  		in, out := &in.Spec, &out.Spec
   145  		*out = new(DeploymentSpecBase)
   146  		(*in).DeepCopyInto(*out)
   147  	}
   148  }
   149  
   150  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentBase.
   151  func (in *DeploymentBase) DeepCopy() *DeploymentBase {
   152  	if in == nil {
   153  		return nil
   154  	}
   155  	out := new(DeploymentBase)
   156  	in.DeepCopyInto(out)
   157  	return out
   158  }
   159  
   160  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   161  func (in *DeploymentSpecBase) DeepCopyInto(out *DeploymentSpecBase) {
   162  	*out = *in
   163  	if in.Replicas != nil {
   164  		in, out := &in.Replicas, &out.Replicas
   165  		*out = new(int32)
   166  		**out = **in
   167  	}
   168  	if in.Selector != nil {
   169  		in, out := &in.Selector, &out.Selector
   170  		*out = new(metav1.LabelSelector)
   171  		(*in).DeepCopyInto(*out)
   172  	}
   173  	if in.Strategy != nil {
   174  		in, out := &in.Strategy, &out.Strategy
   175  		*out = new(appsv1.DeploymentStrategy)
   176  		(*in).DeepCopyInto(*out)
   177  	}
   178  	if in.Template != nil {
   179  		in, out := &in.Template, &out.Template
   180  		*out = new(PodTemplateBase)
   181  		(*in).DeepCopyInto(*out)
   182  	}
   183  }
   184  
   185  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentSpecBase.
   186  func (in *DeploymentSpecBase) DeepCopy() *DeploymentSpecBase {
   187  	if in == nil {
   188  		return nil
   189  	}
   190  	out := new(DeploymentSpecBase)
   191  	in.DeepCopyInto(out)
   192  	return out
   193  }
   194  
   195  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   196  func (in *EnabledComponent) DeepCopyInto(out *EnabledComponent) {
   197  	*out = *in
   198  	if in.Enabled != nil {
   199  		in, out := &in.Enabled, &out.Enabled
   200  		*out = new(bool)
   201  		**out = **in
   202  	}
   203  }
   204  
   205  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnabledComponent.
   206  func (in *EnabledComponent) DeepCopy() *EnabledComponent {
   207  	if in == nil {
   208  		return nil
   209  	}
   210  	out := new(EnabledComponent)
   211  	in.DeepCopyInto(out)
   212  	return out
   213  }
   214  
   215  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   216  func (in *MetaBase) DeepCopyInto(out *MetaBase) {
   217  	*out = *in
   218  	if in.Annotations != nil {
   219  		in, out := &in.Annotations, &out.Annotations
   220  		*out = make(map[string]string, len(*in))
   221  		for key, val := range *in {
   222  			(*out)[key] = val
   223  		}
   224  	}
   225  	if in.Labels != nil {
   226  		in, out := &in.Labels, &out.Labels
   227  		*out = make(map[string]string, len(*in))
   228  		for key, val := range *in {
   229  			(*out)[key] = val
   230  		}
   231  	}
   232  }
   233  
   234  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetaBase.
   235  func (in *MetaBase) DeepCopy() *MetaBase {
   236  	if in == nil {
   237  		return nil
   238  	}
   239  	out := new(MetaBase)
   240  	in.DeepCopyInto(out)
   241  	return out
   242  }
   243  
   244  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   245  func (in *PodSpecBase) DeepCopyInto(out *PodSpecBase) {
   246  	*out = *in
   247  	if in.Tolerations != nil {
   248  		in, out := &in.Tolerations, &out.Tolerations
   249  		*out = make([]v1.Toleration, len(*in))
   250  		for i := range *in {
   251  			(*in)[i].DeepCopyInto(&(*out)[i])
   252  		}
   253  	}
   254  	if in.NodeSelector != nil {
   255  		in, out := &in.NodeSelector, &out.NodeSelector
   256  		*out = make(map[string]string, len(*in))
   257  		for key, val := range *in {
   258  			(*out)[key] = val
   259  		}
   260  	}
   261  	if in.Affinity != nil {
   262  		in, out := &in.Affinity, &out.Affinity
   263  		*out = new(v1.Affinity)
   264  		(*in).DeepCopyInto(*out)
   265  	}
   266  	if in.SecurityContext != nil {
   267  		in, out := &in.SecurityContext, &out.SecurityContext
   268  		*out = new(v1.PodSecurityContext)
   269  		(*in).DeepCopyInto(*out)
   270  	}
   271  	if in.Volumes != nil {
   272  		in, out := &in.Volumes, &out.Volumes
   273  		*out = make([]v1.Volume, len(*in))
   274  		for i := range *in {
   275  			(*in)[i].DeepCopyInto(&(*out)[i])
   276  		}
   277  	}
   278  	if in.Containers != nil {
   279  		in, out := &in.Containers, &out.Containers
   280  		*out = make([]ContainerBase, len(*in))
   281  		for i := range *in {
   282  			(*in)[i].DeepCopyInto(&(*out)[i])
   283  		}
   284  	}
   285  	if in.InitContainers != nil {
   286  		in, out := &in.InitContainers, &out.InitContainers
   287  		*out = make([]ContainerBase, len(*in))
   288  		for i := range *in {
   289  			(*in)[i].DeepCopyInto(&(*out)[i])
   290  		}
   291  	}
   292  	if in.ImagePullSecrets != nil {
   293  		in, out := &in.ImagePullSecrets, &out.ImagePullSecrets
   294  		*out = make([]v1.LocalObjectReference, len(*in))
   295  		copy(*out, *in)
   296  	}
   297  }
   298  
   299  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSpecBase.
   300  func (in *PodSpecBase) DeepCopy() *PodSpecBase {
   301  	if in == nil {
   302  		return nil
   303  	}
   304  	out := new(PodSpecBase)
   305  	in.DeepCopyInto(out)
   306  	return out
   307  }
   308  
   309  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   310  func (in *PodTemplateBase) DeepCopyInto(out *PodTemplateBase) {
   311  	*out = *in
   312  	if in.Metadata != nil {
   313  		in, out := &in.Metadata, &out.Metadata
   314  		*out = new(MetaBase)
   315  		(*in).DeepCopyInto(*out)
   316  	}
   317  	if in.PodSpec != nil {
   318  		in, out := &in.PodSpec, &out.PodSpec
   319  		*out = new(PodSpecBase)
   320  		(*in).DeepCopyInto(*out)
   321  	}
   322  }
   323  
   324  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodTemplateBase.
   325  func (in *PodTemplateBase) DeepCopy() *PodTemplateBase {
   326  	if in == nil {
   327  		return nil
   328  	}
   329  	out := new(PodTemplateBase)
   330  	in.DeepCopyInto(out)
   331  	return out
   332  }
   333  
   334  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   335  func (in *StatefulSetBase) DeepCopyInto(out *StatefulSetBase) {
   336  	*out = *in
   337  	if in.MetaBase != nil {
   338  		in, out := &in.MetaBase, &out.MetaBase
   339  		*out = new(MetaBase)
   340  		(*in).DeepCopyInto(*out)
   341  	}
   342  	if in.Spec != nil {
   343  		in, out := &in.Spec, &out.Spec
   344  		*out = new(StatefulsetSpecBase)
   345  		(*in).DeepCopyInto(*out)
   346  	}
   347  }
   348  
   349  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSetBase.
   350  func (in *StatefulSetBase) DeepCopy() *StatefulSetBase {
   351  	if in == nil {
   352  		return nil
   353  	}
   354  	out := new(StatefulSetBase)
   355  	in.DeepCopyInto(out)
   356  	return out
   357  }
   358  
   359  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   360  func (in *StatefulsetSpecBase) DeepCopyInto(out *StatefulsetSpecBase) {
   361  	*out = *in
   362  	if in.Replicas != nil {
   363  		in, out := &in.Replicas, &out.Replicas
   364  		*out = new(int32)
   365  		**out = **in
   366  	}
   367  	if in.Selector != nil {
   368  		in, out := &in.Selector, &out.Selector
   369  		*out = new(metav1.LabelSelector)
   370  		(*in).DeepCopyInto(*out)
   371  	}
   372  	if in.UpdateStrategy != nil {
   373  		in, out := &in.UpdateStrategy, &out.UpdateStrategy
   374  		*out = new(appsv1.StatefulSetUpdateStrategy)
   375  		(*in).DeepCopyInto(*out)
   376  	}
   377  	if in.Template != nil {
   378  		in, out := &in.Template, &out.Template
   379  		*out = new(PodTemplateBase)
   380  		(*in).DeepCopyInto(*out)
   381  	}
   382  }
   383  
   384  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulsetSpecBase.
   385  func (in *StatefulsetSpecBase) DeepCopy() *StatefulsetSpecBase {
   386  	if in == nil {
   387  		return nil
   388  	}
   389  	out := new(StatefulsetSpecBase)
   390  	in.DeepCopyInto(out)
   391  	return out
   392  }