...

Source file src/k8s.io/api/autoscaling/v1/zz_generated.deepcopy.go

Documentation: k8s.io/api/autoscaling/v1

     1  //go:build !ignore_autogenerated
     2  // +build !ignore_autogenerated
     3  
     4  /*
     5  Copyright The Kubernetes Authors.
     6  
     7  Licensed under the Apache License, Version 2.0 (the "License");
     8  you may not use this file except in compliance with the License.
     9  You may obtain a copy of the License at
    10  
    11      http://www.apache.org/licenses/LICENSE-2.0
    12  
    13  Unless required by applicable law or agreed to in writing, software
    14  distributed under the License is distributed on an "AS IS" BASIS,
    15  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    16  See the License for the specific language governing permissions and
    17  limitations under the License.
    18  */
    19  
    20  // Code generated by deepcopy-gen. DO NOT EDIT.
    21  
    22  package v1
    23  
    24  import (
    25  	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    26  	runtime "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 *ContainerResourceMetricSource) DeepCopyInto(out *ContainerResourceMetricSource) {
    31  	*out = *in
    32  	if in.TargetAverageUtilization != nil {
    33  		in, out := &in.TargetAverageUtilization, &out.TargetAverageUtilization
    34  		*out = new(int32)
    35  		**out = **in
    36  	}
    37  	if in.TargetAverageValue != nil {
    38  		in, out := &in.TargetAverageValue, &out.TargetAverageValue
    39  		x := (*in).DeepCopy()
    40  		*out = &x
    41  	}
    42  	return
    43  }
    44  
    45  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerResourceMetricSource.
    46  func (in *ContainerResourceMetricSource) DeepCopy() *ContainerResourceMetricSource {
    47  	if in == nil {
    48  		return nil
    49  	}
    50  	out := new(ContainerResourceMetricSource)
    51  	in.DeepCopyInto(out)
    52  	return out
    53  }
    54  
    55  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    56  func (in *ContainerResourceMetricStatus) DeepCopyInto(out *ContainerResourceMetricStatus) {
    57  	*out = *in
    58  	if in.CurrentAverageUtilization != nil {
    59  		in, out := &in.CurrentAverageUtilization, &out.CurrentAverageUtilization
    60  		*out = new(int32)
    61  		**out = **in
    62  	}
    63  	out.CurrentAverageValue = in.CurrentAverageValue.DeepCopy()
    64  	return
    65  }
    66  
    67  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerResourceMetricStatus.
    68  func (in *ContainerResourceMetricStatus) DeepCopy() *ContainerResourceMetricStatus {
    69  	if in == nil {
    70  		return nil
    71  	}
    72  	out := new(ContainerResourceMetricStatus)
    73  	in.DeepCopyInto(out)
    74  	return out
    75  }
    76  
    77  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    78  func (in *CrossVersionObjectReference) DeepCopyInto(out *CrossVersionObjectReference) {
    79  	*out = *in
    80  	return
    81  }
    82  
    83  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CrossVersionObjectReference.
    84  func (in *CrossVersionObjectReference) DeepCopy() *CrossVersionObjectReference {
    85  	if in == nil {
    86  		return nil
    87  	}
    88  	out := new(CrossVersionObjectReference)
    89  	in.DeepCopyInto(out)
    90  	return out
    91  }
    92  
    93  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    94  func (in *ExternalMetricSource) DeepCopyInto(out *ExternalMetricSource) {
    95  	*out = *in
    96  	if in.MetricSelector != nil {
    97  		in, out := &in.MetricSelector, &out.MetricSelector
    98  		*out = new(metav1.LabelSelector)
    99  		(*in).DeepCopyInto(*out)
   100  	}
   101  	if in.TargetValue != nil {
   102  		in, out := &in.TargetValue, &out.TargetValue
   103  		x := (*in).DeepCopy()
   104  		*out = &x
   105  	}
   106  	if in.TargetAverageValue != nil {
   107  		in, out := &in.TargetAverageValue, &out.TargetAverageValue
   108  		x := (*in).DeepCopy()
   109  		*out = &x
   110  	}
   111  	return
   112  }
   113  
   114  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalMetricSource.
   115  func (in *ExternalMetricSource) DeepCopy() *ExternalMetricSource {
   116  	if in == nil {
   117  		return nil
   118  	}
   119  	out := new(ExternalMetricSource)
   120  	in.DeepCopyInto(out)
   121  	return out
   122  }
   123  
   124  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   125  func (in *ExternalMetricStatus) DeepCopyInto(out *ExternalMetricStatus) {
   126  	*out = *in
   127  	if in.MetricSelector != nil {
   128  		in, out := &in.MetricSelector, &out.MetricSelector
   129  		*out = new(metav1.LabelSelector)
   130  		(*in).DeepCopyInto(*out)
   131  	}
   132  	out.CurrentValue = in.CurrentValue.DeepCopy()
   133  	if in.CurrentAverageValue != nil {
   134  		in, out := &in.CurrentAverageValue, &out.CurrentAverageValue
   135  		x := (*in).DeepCopy()
   136  		*out = &x
   137  	}
   138  	return
   139  }
   140  
   141  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalMetricStatus.
   142  func (in *ExternalMetricStatus) DeepCopy() *ExternalMetricStatus {
   143  	if in == nil {
   144  		return nil
   145  	}
   146  	out := new(ExternalMetricStatus)
   147  	in.DeepCopyInto(out)
   148  	return out
   149  }
   150  
   151  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   152  func (in *HorizontalPodAutoscaler) DeepCopyInto(out *HorizontalPodAutoscaler) {
   153  	*out = *in
   154  	out.TypeMeta = in.TypeMeta
   155  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
   156  	in.Spec.DeepCopyInto(&out.Spec)
   157  	in.Status.DeepCopyInto(&out.Status)
   158  	return
   159  }
   160  
   161  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscaler.
   162  func (in *HorizontalPodAutoscaler) DeepCopy() *HorizontalPodAutoscaler {
   163  	if in == nil {
   164  		return nil
   165  	}
   166  	out := new(HorizontalPodAutoscaler)
   167  	in.DeepCopyInto(out)
   168  	return out
   169  }
   170  
   171  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   172  func (in *HorizontalPodAutoscaler) DeepCopyObject() runtime.Object {
   173  	if c := in.DeepCopy(); c != nil {
   174  		return c
   175  	}
   176  	return nil
   177  }
   178  
   179  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   180  func (in *HorizontalPodAutoscalerCondition) DeepCopyInto(out *HorizontalPodAutoscalerCondition) {
   181  	*out = *in
   182  	in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime)
   183  	return
   184  }
   185  
   186  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerCondition.
   187  func (in *HorizontalPodAutoscalerCondition) DeepCopy() *HorizontalPodAutoscalerCondition {
   188  	if in == nil {
   189  		return nil
   190  	}
   191  	out := new(HorizontalPodAutoscalerCondition)
   192  	in.DeepCopyInto(out)
   193  	return out
   194  }
   195  
   196  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   197  func (in *HorizontalPodAutoscalerList) DeepCopyInto(out *HorizontalPodAutoscalerList) {
   198  	*out = *in
   199  	out.TypeMeta = in.TypeMeta
   200  	in.ListMeta.DeepCopyInto(&out.ListMeta)
   201  	if in.Items != nil {
   202  		in, out := &in.Items, &out.Items
   203  		*out = make([]HorizontalPodAutoscaler, len(*in))
   204  		for i := range *in {
   205  			(*in)[i].DeepCopyInto(&(*out)[i])
   206  		}
   207  	}
   208  	return
   209  }
   210  
   211  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerList.
   212  func (in *HorizontalPodAutoscalerList) DeepCopy() *HorizontalPodAutoscalerList {
   213  	if in == nil {
   214  		return nil
   215  	}
   216  	out := new(HorizontalPodAutoscalerList)
   217  	in.DeepCopyInto(out)
   218  	return out
   219  }
   220  
   221  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   222  func (in *HorizontalPodAutoscalerList) DeepCopyObject() runtime.Object {
   223  	if c := in.DeepCopy(); c != nil {
   224  		return c
   225  	}
   226  	return nil
   227  }
   228  
   229  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   230  func (in *HorizontalPodAutoscalerSpec) DeepCopyInto(out *HorizontalPodAutoscalerSpec) {
   231  	*out = *in
   232  	out.ScaleTargetRef = in.ScaleTargetRef
   233  	if in.MinReplicas != nil {
   234  		in, out := &in.MinReplicas, &out.MinReplicas
   235  		*out = new(int32)
   236  		**out = **in
   237  	}
   238  	if in.TargetCPUUtilizationPercentage != nil {
   239  		in, out := &in.TargetCPUUtilizationPercentage, &out.TargetCPUUtilizationPercentage
   240  		*out = new(int32)
   241  		**out = **in
   242  	}
   243  	return
   244  }
   245  
   246  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerSpec.
   247  func (in *HorizontalPodAutoscalerSpec) DeepCopy() *HorizontalPodAutoscalerSpec {
   248  	if in == nil {
   249  		return nil
   250  	}
   251  	out := new(HorizontalPodAutoscalerSpec)
   252  	in.DeepCopyInto(out)
   253  	return out
   254  }
   255  
   256  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   257  func (in *HorizontalPodAutoscalerStatus) DeepCopyInto(out *HorizontalPodAutoscalerStatus) {
   258  	*out = *in
   259  	if in.ObservedGeneration != nil {
   260  		in, out := &in.ObservedGeneration, &out.ObservedGeneration
   261  		*out = new(int64)
   262  		**out = **in
   263  	}
   264  	if in.LastScaleTime != nil {
   265  		in, out := &in.LastScaleTime, &out.LastScaleTime
   266  		*out = (*in).DeepCopy()
   267  	}
   268  	if in.CurrentCPUUtilizationPercentage != nil {
   269  		in, out := &in.CurrentCPUUtilizationPercentage, &out.CurrentCPUUtilizationPercentage
   270  		*out = new(int32)
   271  		**out = **in
   272  	}
   273  	return
   274  }
   275  
   276  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerStatus.
   277  func (in *HorizontalPodAutoscalerStatus) DeepCopy() *HorizontalPodAutoscalerStatus {
   278  	if in == nil {
   279  		return nil
   280  	}
   281  	out := new(HorizontalPodAutoscalerStatus)
   282  	in.DeepCopyInto(out)
   283  	return out
   284  }
   285  
   286  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   287  func (in *MetricSpec) DeepCopyInto(out *MetricSpec) {
   288  	*out = *in
   289  	if in.Object != nil {
   290  		in, out := &in.Object, &out.Object
   291  		*out = new(ObjectMetricSource)
   292  		(*in).DeepCopyInto(*out)
   293  	}
   294  	if in.Pods != nil {
   295  		in, out := &in.Pods, &out.Pods
   296  		*out = new(PodsMetricSource)
   297  		(*in).DeepCopyInto(*out)
   298  	}
   299  	if in.Resource != nil {
   300  		in, out := &in.Resource, &out.Resource
   301  		*out = new(ResourceMetricSource)
   302  		(*in).DeepCopyInto(*out)
   303  	}
   304  	if in.ContainerResource != nil {
   305  		in, out := &in.ContainerResource, &out.ContainerResource
   306  		*out = new(ContainerResourceMetricSource)
   307  		(*in).DeepCopyInto(*out)
   308  	}
   309  	if in.External != nil {
   310  		in, out := &in.External, &out.External
   311  		*out = new(ExternalMetricSource)
   312  		(*in).DeepCopyInto(*out)
   313  	}
   314  	return
   315  }
   316  
   317  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricSpec.
   318  func (in *MetricSpec) DeepCopy() *MetricSpec {
   319  	if in == nil {
   320  		return nil
   321  	}
   322  	out := new(MetricSpec)
   323  	in.DeepCopyInto(out)
   324  	return out
   325  }
   326  
   327  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   328  func (in *MetricStatus) DeepCopyInto(out *MetricStatus) {
   329  	*out = *in
   330  	if in.Object != nil {
   331  		in, out := &in.Object, &out.Object
   332  		*out = new(ObjectMetricStatus)
   333  		(*in).DeepCopyInto(*out)
   334  	}
   335  	if in.Pods != nil {
   336  		in, out := &in.Pods, &out.Pods
   337  		*out = new(PodsMetricStatus)
   338  		(*in).DeepCopyInto(*out)
   339  	}
   340  	if in.Resource != nil {
   341  		in, out := &in.Resource, &out.Resource
   342  		*out = new(ResourceMetricStatus)
   343  		(*in).DeepCopyInto(*out)
   344  	}
   345  	if in.ContainerResource != nil {
   346  		in, out := &in.ContainerResource, &out.ContainerResource
   347  		*out = new(ContainerResourceMetricStatus)
   348  		(*in).DeepCopyInto(*out)
   349  	}
   350  	if in.External != nil {
   351  		in, out := &in.External, &out.External
   352  		*out = new(ExternalMetricStatus)
   353  		(*in).DeepCopyInto(*out)
   354  	}
   355  	return
   356  }
   357  
   358  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricStatus.
   359  func (in *MetricStatus) DeepCopy() *MetricStatus {
   360  	if in == nil {
   361  		return nil
   362  	}
   363  	out := new(MetricStatus)
   364  	in.DeepCopyInto(out)
   365  	return out
   366  }
   367  
   368  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   369  func (in *ObjectMetricSource) DeepCopyInto(out *ObjectMetricSource) {
   370  	*out = *in
   371  	out.Target = in.Target
   372  	out.TargetValue = in.TargetValue.DeepCopy()
   373  	if in.Selector != nil {
   374  		in, out := &in.Selector, &out.Selector
   375  		*out = new(metav1.LabelSelector)
   376  		(*in).DeepCopyInto(*out)
   377  	}
   378  	if in.AverageValue != nil {
   379  		in, out := &in.AverageValue, &out.AverageValue
   380  		x := (*in).DeepCopy()
   381  		*out = &x
   382  	}
   383  	return
   384  }
   385  
   386  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMetricSource.
   387  func (in *ObjectMetricSource) DeepCopy() *ObjectMetricSource {
   388  	if in == nil {
   389  		return nil
   390  	}
   391  	out := new(ObjectMetricSource)
   392  	in.DeepCopyInto(out)
   393  	return out
   394  }
   395  
   396  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   397  func (in *ObjectMetricStatus) DeepCopyInto(out *ObjectMetricStatus) {
   398  	*out = *in
   399  	out.Target = in.Target
   400  	out.CurrentValue = in.CurrentValue.DeepCopy()
   401  	if in.Selector != nil {
   402  		in, out := &in.Selector, &out.Selector
   403  		*out = new(metav1.LabelSelector)
   404  		(*in).DeepCopyInto(*out)
   405  	}
   406  	if in.AverageValue != nil {
   407  		in, out := &in.AverageValue, &out.AverageValue
   408  		x := (*in).DeepCopy()
   409  		*out = &x
   410  	}
   411  	return
   412  }
   413  
   414  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMetricStatus.
   415  func (in *ObjectMetricStatus) DeepCopy() *ObjectMetricStatus {
   416  	if in == nil {
   417  		return nil
   418  	}
   419  	out := new(ObjectMetricStatus)
   420  	in.DeepCopyInto(out)
   421  	return out
   422  }
   423  
   424  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   425  func (in *PodsMetricSource) DeepCopyInto(out *PodsMetricSource) {
   426  	*out = *in
   427  	out.TargetAverageValue = in.TargetAverageValue.DeepCopy()
   428  	if in.Selector != nil {
   429  		in, out := &in.Selector, &out.Selector
   430  		*out = new(metav1.LabelSelector)
   431  		(*in).DeepCopyInto(*out)
   432  	}
   433  	return
   434  }
   435  
   436  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodsMetricSource.
   437  func (in *PodsMetricSource) DeepCopy() *PodsMetricSource {
   438  	if in == nil {
   439  		return nil
   440  	}
   441  	out := new(PodsMetricSource)
   442  	in.DeepCopyInto(out)
   443  	return out
   444  }
   445  
   446  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   447  func (in *PodsMetricStatus) DeepCopyInto(out *PodsMetricStatus) {
   448  	*out = *in
   449  	out.CurrentAverageValue = in.CurrentAverageValue.DeepCopy()
   450  	if in.Selector != nil {
   451  		in, out := &in.Selector, &out.Selector
   452  		*out = new(metav1.LabelSelector)
   453  		(*in).DeepCopyInto(*out)
   454  	}
   455  	return
   456  }
   457  
   458  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodsMetricStatus.
   459  func (in *PodsMetricStatus) DeepCopy() *PodsMetricStatus {
   460  	if in == nil {
   461  		return nil
   462  	}
   463  	out := new(PodsMetricStatus)
   464  	in.DeepCopyInto(out)
   465  	return out
   466  }
   467  
   468  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   469  func (in *ResourceMetricSource) DeepCopyInto(out *ResourceMetricSource) {
   470  	*out = *in
   471  	if in.TargetAverageUtilization != nil {
   472  		in, out := &in.TargetAverageUtilization, &out.TargetAverageUtilization
   473  		*out = new(int32)
   474  		**out = **in
   475  	}
   476  	if in.TargetAverageValue != nil {
   477  		in, out := &in.TargetAverageValue, &out.TargetAverageValue
   478  		x := (*in).DeepCopy()
   479  		*out = &x
   480  	}
   481  	return
   482  }
   483  
   484  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMetricSource.
   485  func (in *ResourceMetricSource) DeepCopy() *ResourceMetricSource {
   486  	if in == nil {
   487  		return nil
   488  	}
   489  	out := new(ResourceMetricSource)
   490  	in.DeepCopyInto(out)
   491  	return out
   492  }
   493  
   494  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   495  func (in *ResourceMetricStatus) DeepCopyInto(out *ResourceMetricStatus) {
   496  	*out = *in
   497  	if in.CurrentAverageUtilization != nil {
   498  		in, out := &in.CurrentAverageUtilization, &out.CurrentAverageUtilization
   499  		*out = new(int32)
   500  		**out = **in
   501  	}
   502  	out.CurrentAverageValue = in.CurrentAverageValue.DeepCopy()
   503  	return
   504  }
   505  
   506  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMetricStatus.
   507  func (in *ResourceMetricStatus) DeepCopy() *ResourceMetricStatus {
   508  	if in == nil {
   509  		return nil
   510  	}
   511  	out := new(ResourceMetricStatus)
   512  	in.DeepCopyInto(out)
   513  	return out
   514  }
   515  
   516  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   517  func (in *Scale) DeepCopyInto(out *Scale) {
   518  	*out = *in
   519  	out.TypeMeta = in.TypeMeta
   520  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
   521  	out.Spec = in.Spec
   522  	out.Status = in.Status
   523  	return
   524  }
   525  
   526  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Scale.
   527  func (in *Scale) DeepCopy() *Scale {
   528  	if in == nil {
   529  		return nil
   530  	}
   531  	out := new(Scale)
   532  	in.DeepCopyInto(out)
   533  	return out
   534  }
   535  
   536  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   537  func (in *Scale) DeepCopyObject() runtime.Object {
   538  	if c := in.DeepCopy(); c != nil {
   539  		return c
   540  	}
   541  	return nil
   542  }
   543  
   544  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   545  func (in *ScaleSpec) DeepCopyInto(out *ScaleSpec) {
   546  	*out = *in
   547  	return
   548  }
   549  
   550  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScaleSpec.
   551  func (in *ScaleSpec) DeepCopy() *ScaleSpec {
   552  	if in == nil {
   553  		return nil
   554  	}
   555  	out := new(ScaleSpec)
   556  	in.DeepCopyInto(out)
   557  	return out
   558  }
   559  
   560  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   561  func (in *ScaleStatus) DeepCopyInto(out *ScaleStatus) {
   562  	*out = *in
   563  	return
   564  }
   565  
   566  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScaleStatus.
   567  func (in *ScaleStatus) DeepCopy() *ScaleStatus {
   568  	if in == nil {
   569  		return nil
   570  	}
   571  	out := new(ScaleStatus)
   572  	in.DeepCopyInto(out)
   573  	return out
   574  }
   575  

View as plain text