k8s.io/kubernetes@v1.29.3/pkg/apis/policy/zz_generated.deepcopy.go (about) 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 policy 23 24 import ( 25 v1 "k8s.io/apimachinery/pkg/apis/meta/v1" 26 runtime "k8s.io/apimachinery/pkg/runtime" 27 intstr "k8s.io/apimachinery/pkg/util/intstr" 28 ) 29 30 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 31 func (in *Eviction) DeepCopyInto(out *Eviction) { 32 *out = *in 33 out.TypeMeta = in.TypeMeta 34 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 35 if in.DeleteOptions != nil { 36 in, out := &in.DeleteOptions, &out.DeleteOptions 37 *out = new(v1.DeleteOptions) 38 (*in).DeepCopyInto(*out) 39 } 40 return 41 } 42 43 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Eviction. 44 func (in *Eviction) DeepCopy() *Eviction { 45 if in == nil { 46 return nil 47 } 48 out := new(Eviction) 49 in.DeepCopyInto(out) 50 return out 51 } 52 53 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 54 func (in *Eviction) DeepCopyObject() runtime.Object { 55 if c := in.DeepCopy(); c != nil { 56 return c 57 } 58 return nil 59 } 60 61 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 62 func (in *PodDisruptionBudget) DeepCopyInto(out *PodDisruptionBudget) { 63 *out = *in 64 out.TypeMeta = in.TypeMeta 65 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 66 in.Spec.DeepCopyInto(&out.Spec) 67 in.Status.DeepCopyInto(&out.Status) 68 return 69 } 70 71 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudget. 72 func (in *PodDisruptionBudget) DeepCopy() *PodDisruptionBudget { 73 if in == nil { 74 return nil 75 } 76 out := new(PodDisruptionBudget) 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 *PodDisruptionBudget) 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 *PodDisruptionBudgetList) DeepCopyInto(out *PodDisruptionBudgetList) { 91 *out = *in 92 out.TypeMeta = in.TypeMeta 93 in.ListMeta.DeepCopyInto(&out.ListMeta) 94 if in.Items != nil { 95 in, out := &in.Items, &out.Items 96 *out = make([]PodDisruptionBudget, len(*in)) 97 for i := range *in { 98 (*in)[i].DeepCopyInto(&(*out)[i]) 99 } 100 } 101 return 102 } 103 104 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudgetList. 105 func (in *PodDisruptionBudgetList) DeepCopy() *PodDisruptionBudgetList { 106 if in == nil { 107 return nil 108 } 109 out := new(PodDisruptionBudgetList) 110 in.DeepCopyInto(out) 111 return out 112 } 113 114 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 115 func (in *PodDisruptionBudgetList) DeepCopyObject() runtime.Object { 116 if c := in.DeepCopy(); c != nil { 117 return c 118 } 119 return nil 120 } 121 122 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 123 func (in *PodDisruptionBudgetSpec) DeepCopyInto(out *PodDisruptionBudgetSpec) { 124 *out = *in 125 if in.MinAvailable != nil { 126 in, out := &in.MinAvailable, &out.MinAvailable 127 *out = new(intstr.IntOrString) 128 **out = **in 129 } 130 if in.Selector != nil { 131 in, out := &in.Selector, &out.Selector 132 *out = new(v1.LabelSelector) 133 (*in).DeepCopyInto(*out) 134 } 135 if in.MaxUnavailable != nil { 136 in, out := &in.MaxUnavailable, &out.MaxUnavailable 137 *out = new(intstr.IntOrString) 138 **out = **in 139 } 140 if in.UnhealthyPodEvictionPolicy != nil { 141 in, out := &in.UnhealthyPodEvictionPolicy, &out.UnhealthyPodEvictionPolicy 142 *out = new(UnhealthyPodEvictionPolicyType) 143 **out = **in 144 } 145 return 146 } 147 148 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudgetSpec. 149 func (in *PodDisruptionBudgetSpec) DeepCopy() *PodDisruptionBudgetSpec { 150 if in == nil { 151 return nil 152 } 153 out := new(PodDisruptionBudgetSpec) 154 in.DeepCopyInto(out) 155 return out 156 } 157 158 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 159 func (in *PodDisruptionBudgetStatus) DeepCopyInto(out *PodDisruptionBudgetStatus) { 160 *out = *in 161 if in.DisruptedPods != nil { 162 in, out := &in.DisruptedPods, &out.DisruptedPods 163 *out = make(map[string]v1.Time, len(*in)) 164 for key, val := range *in { 165 (*out)[key] = *val.DeepCopy() 166 } 167 } 168 if in.Conditions != nil { 169 in, out := &in.Conditions, &out.Conditions 170 *out = make([]v1.Condition, len(*in)) 171 for i := range *in { 172 (*in)[i].DeepCopyInto(&(*out)[i]) 173 } 174 } 175 return 176 } 177 178 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudgetStatus. 179 func (in *PodDisruptionBudgetStatus) DeepCopy() *PodDisruptionBudgetStatus { 180 if in == nil { 181 return nil 182 } 183 out := new(PodDisruptionBudgetStatus) 184 in.DeepCopyInto(out) 185 return out 186 }