...

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

Documentation: k8s.io/api/autoscaling/v2beta1

     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 v2beta1
    23  
    24  import (
    25  	v1 "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(v1.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(v1.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.Metrics != nil {
   239  		in, out := &in.Metrics, &out.Metrics
   240  		*out = make([]MetricSpec, len(*in))
   241  		for i := range *in {
   242  			(*in)[i].DeepCopyInto(&(*out)[i])
   243  		}
   244  	}
   245  	return
   246  }
   247  
   248  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerSpec.
   249  func (in *HorizontalPodAutoscalerSpec) DeepCopy() *HorizontalPodAutoscalerSpec {
   250  	if in == nil {
   251  		return nil
   252  	}
   253  	out := new(HorizontalPodAutoscalerSpec)
   254  	in.DeepCopyInto(out)
   255  	return out
   256  }
   257  
   258  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   259  func (in *HorizontalPodAutoscalerStatus) DeepCopyInto(out *HorizontalPodAutoscalerStatus) {
   260  	*out = *in
   261  	if in.ObservedGeneration != nil {
   262  		in, out := &in.ObservedGeneration, &out.ObservedGeneration
   263  		*out = new(int64)
   264  		**out = **in
   265  	}
   266  	if in.LastScaleTime != nil {
   267  		in, out := &in.LastScaleTime, &out.LastScaleTime
   268  		*out = (*in).DeepCopy()
   269  	}
   270  	if in.CurrentMetrics != nil {
   271  		in, out := &in.CurrentMetrics, &out.CurrentMetrics
   272  		*out = make([]MetricStatus, len(*in))
   273  		for i := range *in {
   274  			(*in)[i].DeepCopyInto(&(*out)[i])
   275  		}
   276  	}
   277  	if in.Conditions != nil {
   278  		in, out := &in.Conditions, &out.Conditions
   279  		*out = make([]HorizontalPodAutoscalerCondition, len(*in))
   280  		for i := range *in {
   281  			(*in)[i].DeepCopyInto(&(*out)[i])
   282  		}
   283  	}
   284  	return
   285  }
   286  
   287  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerStatus.
   288  func (in *HorizontalPodAutoscalerStatus) DeepCopy() *HorizontalPodAutoscalerStatus {
   289  	if in == nil {
   290  		return nil
   291  	}
   292  	out := new(HorizontalPodAutoscalerStatus)
   293  	in.DeepCopyInto(out)
   294  	return out
   295  }
   296  
   297  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   298  func (in *MetricSpec) DeepCopyInto(out *MetricSpec) {
   299  	*out = *in
   300  	if in.Object != nil {
   301  		in, out := &in.Object, &out.Object
   302  		*out = new(ObjectMetricSource)
   303  		(*in).DeepCopyInto(*out)
   304  	}
   305  	if in.Pods != nil {
   306  		in, out := &in.Pods, &out.Pods
   307  		*out = new(PodsMetricSource)
   308  		(*in).DeepCopyInto(*out)
   309  	}
   310  	if in.Resource != nil {
   311  		in, out := &in.Resource, &out.Resource
   312  		*out = new(ResourceMetricSource)
   313  		(*in).DeepCopyInto(*out)
   314  	}
   315  	if in.ContainerResource != nil {
   316  		in, out := &in.ContainerResource, &out.ContainerResource
   317  		*out = new(ContainerResourceMetricSource)
   318  		(*in).DeepCopyInto(*out)
   319  	}
   320  	if in.External != nil {
   321  		in, out := &in.External, &out.External
   322  		*out = new(ExternalMetricSource)
   323  		(*in).DeepCopyInto(*out)
   324  	}
   325  	return
   326  }
   327  
   328  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricSpec.
   329  func (in *MetricSpec) DeepCopy() *MetricSpec {
   330  	if in == nil {
   331  		return nil
   332  	}
   333  	out := new(MetricSpec)
   334  	in.DeepCopyInto(out)
   335  	return out
   336  }
   337  
   338  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   339  func (in *MetricStatus) DeepCopyInto(out *MetricStatus) {
   340  	*out = *in
   341  	if in.Object != nil {
   342  		in, out := &in.Object, &out.Object
   343  		*out = new(ObjectMetricStatus)
   344  		(*in).DeepCopyInto(*out)
   345  	}
   346  	if in.Pods != nil {
   347  		in, out := &in.Pods, &out.Pods
   348  		*out = new(PodsMetricStatus)
   349  		(*in).DeepCopyInto(*out)
   350  	}
   351  	if in.Resource != nil {
   352  		in, out := &in.Resource, &out.Resource
   353  		*out = new(ResourceMetricStatus)
   354  		(*in).DeepCopyInto(*out)
   355  	}
   356  	if in.ContainerResource != nil {
   357  		in, out := &in.ContainerResource, &out.ContainerResource
   358  		*out = new(ContainerResourceMetricStatus)
   359  		(*in).DeepCopyInto(*out)
   360  	}
   361  	if in.External != nil {
   362  		in, out := &in.External, &out.External
   363  		*out = new(ExternalMetricStatus)
   364  		(*in).DeepCopyInto(*out)
   365  	}
   366  	return
   367  }
   368  
   369  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricStatus.
   370  func (in *MetricStatus) DeepCopy() *MetricStatus {
   371  	if in == nil {
   372  		return nil
   373  	}
   374  	out := new(MetricStatus)
   375  	in.DeepCopyInto(out)
   376  	return out
   377  }
   378  
   379  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   380  func (in *ObjectMetricSource) DeepCopyInto(out *ObjectMetricSource) {
   381  	*out = *in
   382  	out.Target = in.Target
   383  	out.TargetValue = in.TargetValue.DeepCopy()
   384  	if in.Selector != nil {
   385  		in, out := &in.Selector, &out.Selector
   386  		*out = new(v1.LabelSelector)
   387  		(*in).DeepCopyInto(*out)
   388  	}
   389  	if in.AverageValue != nil {
   390  		in, out := &in.AverageValue, &out.AverageValue
   391  		x := (*in).DeepCopy()
   392  		*out = &x
   393  	}
   394  	return
   395  }
   396  
   397  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMetricSource.
   398  func (in *ObjectMetricSource) DeepCopy() *ObjectMetricSource {
   399  	if in == nil {
   400  		return nil
   401  	}
   402  	out := new(ObjectMetricSource)
   403  	in.DeepCopyInto(out)
   404  	return out
   405  }
   406  
   407  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   408  func (in *ObjectMetricStatus) DeepCopyInto(out *ObjectMetricStatus) {
   409  	*out = *in
   410  	out.Target = in.Target
   411  	out.CurrentValue = in.CurrentValue.DeepCopy()
   412  	if in.Selector != nil {
   413  		in, out := &in.Selector, &out.Selector
   414  		*out = new(v1.LabelSelector)
   415  		(*in).DeepCopyInto(*out)
   416  	}
   417  	if in.AverageValue != nil {
   418  		in, out := &in.AverageValue, &out.AverageValue
   419  		x := (*in).DeepCopy()
   420  		*out = &x
   421  	}
   422  	return
   423  }
   424  
   425  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMetricStatus.
   426  func (in *ObjectMetricStatus) DeepCopy() *ObjectMetricStatus {
   427  	if in == nil {
   428  		return nil
   429  	}
   430  	out := new(ObjectMetricStatus)
   431  	in.DeepCopyInto(out)
   432  	return out
   433  }
   434  
   435  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   436  func (in *PodsMetricSource) DeepCopyInto(out *PodsMetricSource) {
   437  	*out = *in
   438  	out.TargetAverageValue = in.TargetAverageValue.DeepCopy()
   439  	if in.Selector != nil {
   440  		in, out := &in.Selector, &out.Selector
   441  		*out = new(v1.LabelSelector)
   442  		(*in).DeepCopyInto(*out)
   443  	}
   444  	return
   445  }
   446  
   447  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodsMetricSource.
   448  func (in *PodsMetricSource) DeepCopy() *PodsMetricSource {
   449  	if in == nil {
   450  		return nil
   451  	}
   452  	out := new(PodsMetricSource)
   453  	in.DeepCopyInto(out)
   454  	return out
   455  }
   456  
   457  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   458  func (in *PodsMetricStatus) DeepCopyInto(out *PodsMetricStatus) {
   459  	*out = *in
   460  	out.CurrentAverageValue = in.CurrentAverageValue.DeepCopy()
   461  	if in.Selector != nil {
   462  		in, out := &in.Selector, &out.Selector
   463  		*out = new(v1.LabelSelector)
   464  		(*in).DeepCopyInto(*out)
   465  	}
   466  	return
   467  }
   468  
   469  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodsMetricStatus.
   470  func (in *PodsMetricStatus) DeepCopy() *PodsMetricStatus {
   471  	if in == nil {
   472  		return nil
   473  	}
   474  	out := new(PodsMetricStatus)
   475  	in.DeepCopyInto(out)
   476  	return out
   477  }
   478  
   479  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   480  func (in *ResourceMetricSource) DeepCopyInto(out *ResourceMetricSource) {
   481  	*out = *in
   482  	if in.TargetAverageUtilization != nil {
   483  		in, out := &in.TargetAverageUtilization, &out.TargetAverageUtilization
   484  		*out = new(int32)
   485  		**out = **in
   486  	}
   487  	if in.TargetAverageValue != nil {
   488  		in, out := &in.TargetAverageValue, &out.TargetAverageValue
   489  		x := (*in).DeepCopy()
   490  		*out = &x
   491  	}
   492  	return
   493  }
   494  
   495  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMetricSource.
   496  func (in *ResourceMetricSource) DeepCopy() *ResourceMetricSource {
   497  	if in == nil {
   498  		return nil
   499  	}
   500  	out := new(ResourceMetricSource)
   501  	in.DeepCopyInto(out)
   502  	return out
   503  }
   504  
   505  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   506  func (in *ResourceMetricStatus) DeepCopyInto(out *ResourceMetricStatus) {
   507  	*out = *in
   508  	if in.CurrentAverageUtilization != nil {
   509  		in, out := &in.CurrentAverageUtilization, &out.CurrentAverageUtilization
   510  		*out = new(int32)
   511  		**out = **in
   512  	}
   513  	out.CurrentAverageValue = in.CurrentAverageValue.DeepCopy()
   514  	return
   515  }
   516  
   517  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMetricStatus.
   518  func (in *ResourceMetricStatus) DeepCopy() *ResourceMetricStatus {
   519  	if in == nil {
   520  		return nil
   521  	}
   522  	out := new(ResourceMetricStatus)
   523  	in.DeepCopyInto(out)
   524  	return out
   525  }
   526  

View as plain text