1 // +build !ignore_autogenerated
4 Copyright The Kubernetes Authors.
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
10 http://www.apache.org/licenses/LICENSE-2.0
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.
19 // Code generated by deepcopy-gen. DO NOT EDIT.
24 corev1 "k8s.io/api/core/v1"
25 v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
26 runtime "k8s.io/apimachinery/pkg/runtime"
27 intstr "k8s.io/apimachinery/pkg/util/intstr"
30 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
31 func (in *AllowedFlexVolume) DeepCopyInto(out *AllowedFlexVolume) {
36 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AllowedFlexVolume.
37 func (in *AllowedFlexVolume) DeepCopy() *AllowedFlexVolume {
41 out := new(AllowedFlexVolume)
46 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
47 func (in *AllowedHostPath) DeepCopyInto(out *AllowedHostPath) {
52 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AllowedHostPath.
53 func (in *AllowedHostPath) DeepCopy() *AllowedHostPath {
57 out := new(AllowedHostPath)
62 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
63 func (in *Eviction) DeepCopyInto(out *Eviction) {
65 out.TypeMeta = in.TypeMeta
66 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
67 if in.DeleteOptions != nil {
68 in, out := &in.DeleteOptions, &out.DeleteOptions
69 *out = new(v1.DeleteOptions)
70 (*in).DeepCopyInto(*out)
75 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Eviction.
76 func (in *Eviction) DeepCopy() *Eviction {
85 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
86 func (in *Eviction) DeepCopyObject() runtime.Object {
87 if c := in.DeepCopy(); c != nil {
93 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
94 func (in *FSGroupStrategyOptions) DeepCopyInto(out *FSGroupStrategyOptions) {
97 in, out := &in.Ranges, &out.Ranges
98 *out = make([]IDRange, len(*in))
104 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FSGroupStrategyOptions.
105 func (in *FSGroupStrategyOptions) DeepCopy() *FSGroupStrategyOptions {
109 out := new(FSGroupStrategyOptions)
114 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
115 func (in *HostPortRange) DeepCopyInto(out *HostPortRange) {
120 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostPortRange.
121 func (in *HostPortRange) DeepCopy() *HostPortRange {
125 out := new(HostPortRange)
130 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
131 func (in *IDRange) DeepCopyInto(out *IDRange) {
136 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IDRange.
137 func (in *IDRange) DeepCopy() *IDRange {
146 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
147 func (in *PodDisruptionBudget) DeepCopyInto(out *PodDisruptionBudget) {
149 out.TypeMeta = in.TypeMeta
150 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
151 in.Spec.DeepCopyInto(&out.Spec)
152 in.Status.DeepCopyInto(&out.Status)
156 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudget.
157 func (in *PodDisruptionBudget) DeepCopy() *PodDisruptionBudget {
161 out := new(PodDisruptionBudget)
166 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
167 func (in *PodDisruptionBudget) DeepCopyObject() runtime.Object {
168 if c := in.DeepCopy(); c != nil {
174 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
175 func (in *PodDisruptionBudgetList) DeepCopyInto(out *PodDisruptionBudgetList) {
177 out.TypeMeta = in.TypeMeta
178 out.ListMeta = in.ListMeta
180 in, out := &in.Items, &out.Items
181 *out = make([]PodDisruptionBudget, len(*in))
183 (*in)[i].DeepCopyInto(&(*out)[i])
189 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudgetList.
190 func (in *PodDisruptionBudgetList) DeepCopy() *PodDisruptionBudgetList {
194 out := new(PodDisruptionBudgetList)
199 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
200 func (in *PodDisruptionBudgetList) DeepCopyObject() runtime.Object {
201 if c := in.DeepCopy(); c != nil {
207 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
208 func (in *PodDisruptionBudgetSpec) DeepCopyInto(out *PodDisruptionBudgetSpec) {
210 if in.MinAvailable != nil {
211 in, out := &in.MinAvailable, &out.MinAvailable
212 *out = new(intstr.IntOrString)
215 if in.Selector != nil {
216 in, out := &in.Selector, &out.Selector
217 *out = new(v1.LabelSelector)
218 (*in).DeepCopyInto(*out)
220 if in.MaxUnavailable != nil {
221 in, out := &in.MaxUnavailable, &out.MaxUnavailable
222 *out = new(intstr.IntOrString)
228 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudgetSpec.
229 func (in *PodDisruptionBudgetSpec) DeepCopy() *PodDisruptionBudgetSpec {
233 out := new(PodDisruptionBudgetSpec)
238 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
239 func (in *PodDisruptionBudgetStatus) DeepCopyInto(out *PodDisruptionBudgetStatus) {
241 if in.DisruptedPods != nil {
242 in, out := &in.DisruptedPods, &out.DisruptedPods
243 *out = make(map[string]v1.Time, len(*in))
244 for key, val := range *in {
245 (*out)[key] = *val.DeepCopy()
251 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudgetStatus.
252 func (in *PodDisruptionBudgetStatus) DeepCopy() *PodDisruptionBudgetStatus {
256 out := new(PodDisruptionBudgetStatus)
261 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
262 func (in *PodSecurityPolicy) DeepCopyInto(out *PodSecurityPolicy) {
264 out.TypeMeta = in.TypeMeta
265 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
266 in.Spec.DeepCopyInto(&out.Spec)
270 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSecurityPolicy.
271 func (in *PodSecurityPolicy) DeepCopy() *PodSecurityPolicy {
275 out := new(PodSecurityPolicy)
280 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
281 func (in *PodSecurityPolicy) DeepCopyObject() runtime.Object {
282 if c := in.DeepCopy(); c != nil {
288 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
289 func (in *PodSecurityPolicyList) DeepCopyInto(out *PodSecurityPolicyList) {
291 out.TypeMeta = in.TypeMeta
292 out.ListMeta = in.ListMeta
294 in, out := &in.Items, &out.Items
295 *out = make([]PodSecurityPolicy, len(*in))
297 (*in)[i].DeepCopyInto(&(*out)[i])
303 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSecurityPolicyList.
304 func (in *PodSecurityPolicyList) DeepCopy() *PodSecurityPolicyList {
308 out := new(PodSecurityPolicyList)
313 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
314 func (in *PodSecurityPolicyList) DeepCopyObject() runtime.Object {
315 if c := in.DeepCopy(); c != nil {
321 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
322 func (in *PodSecurityPolicySpec) DeepCopyInto(out *PodSecurityPolicySpec) {
324 if in.DefaultAddCapabilities != nil {
325 in, out := &in.DefaultAddCapabilities, &out.DefaultAddCapabilities
326 *out = make([]corev1.Capability, len(*in))
329 if in.RequiredDropCapabilities != nil {
330 in, out := &in.RequiredDropCapabilities, &out.RequiredDropCapabilities
331 *out = make([]corev1.Capability, len(*in))
334 if in.AllowedCapabilities != nil {
335 in, out := &in.AllowedCapabilities, &out.AllowedCapabilities
336 *out = make([]corev1.Capability, len(*in))
339 if in.Volumes != nil {
340 in, out := &in.Volumes, &out.Volumes
341 *out = make([]FSType, len(*in))
344 if in.HostPorts != nil {
345 in, out := &in.HostPorts, &out.HostPorts
346 *out = make([]HostPortRange, len(*in))
349 in.SELinux.DeepCopyInto(&out.SELinux)
350 in.RunAsUser.DeepCopyInto(&out.RunAsUser)
351 if in.RunAsGroup != nil {
352 in, out := &in.RunAsGroup, &out.RunAsGroup
353 *out = new(RunAsGroupStrategyOptions)
354 (*in).DeepCopyInto(*out)
356 in.SupplementalGroups.DeepCopyInto(&out.SupplementalGroups)
357 in.FSGroup.DeepCopyInto(&out.FSGroup)
358 if in.DefaultAllowPrivilegeEscalation != nil {
359 in, out := &in.DefaultAllowPrivilegeEscalation, &out.DefaultAllowPrivilegeEscalation
363 if in.AllowPrivilegeEscalation != nil {
364 in, out := &in.AllowPrivilegeEscalation, &out.AllowPrivilegeEscalation
368 if in.AllowedHostPaths != nil {
369 in, out := &in.AllowedHostPaths, &out.AllowedHostPaths
370 *out = make([]AllowedHostPath, len(*in))
373 if in.AllowedFlexVolumes != nil {
374 in, out := &in.AllowedFlexVolumes, &out.AllowedFlexVolumes
375 *out = make([]AllowedFlexVolume, len(*in))
378 if in.AllowedUnsafeSysctls != nil {
379 in, out := &in.AllowedUnsafeSysctls, &out.AllowedUnsafeSysctls
380 *out = make([]string, len(*in))
383 if in.ForbiddenSysctls != nil {
384 in, out := &in.ForbiddenSysctls, &out.ForbiddenSysctls
385 *out = make([]string, len(*in))
388 if in.AllowedProcMountTypes != nil {
389 in, out := &in.AllowedProcMountTypes, &out.AllowedProcMountTypes
390 *out = make([]corev1.ProcMountType, len(*in))
396 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSecurityPolicySpec.
397 func (in *PodSecurityPolicySpec) DeepCopy() *PodSecurityPolicySpec {
401 out := new(PodSecurityPolicySpec)
406 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
407 func (in *RunAsGroupStrategyOptions) DeepCopyInto(out *RunAsGroupStrategyOptions) {
409 if in.Ranges != nil {
410 in, out := &in.Ranges, &out.Ranges
411 *out = make([]IDRange, len(*in))
417 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunAsGroupStrategyOptions.
418 func (in *RunAsGroupStrategyOptions) DeepCopy() *RunAsGroupStrategyOptions {
422 out := new(RunAsGroupStrategyOptions)
427 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
428 func (in *RunAsUserStrategyOptions) DeepCopyInto(out *RunAsUserStrategyOptions) {
430 if in.Ranges != nil {
431 in, out := &in.Ranges, &out.Ranges
432 *out = make([]IDRange, len(*in))
438 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunAsUserStrategyOptions.
439 func (in *RunAsUserStrategyOptions) DeepCopy() *RunAsUserStrategyOptions {
443 out := new(RunAsUserStrategyOptions)
448 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
449 func (in *SELinuxStrategyOptions) DeepCopyInto(out *SELinuxStrategyOptions) {
451 if in.SELinuxOptions != nil {
452 in, out := &in.SELinuxOptions, &out.SELinuxOptions
453 *out = new(corev1.SELinuxOptions)
459 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SELinuxStrategyOptions.
460 func (in *SELinuxStrategyOptions) DeepCopy() *SELinuxStrategyOptions {
464 out := new(SELinuxStrategyOptions)
469 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
470 func (in *SupplementalGroupsStrategyOptions) DeepCopyInto(out *SupplementalGroupsStrategyOptions) {
472 if in.Ranges != nil {
473 in, out := &in.Ranges, &out.Ranges
474 *out = make([]IDRange, len(*in))
480 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SupplementalGroupsStrategyOptions.
481 func (in *SupplementalGroupsStrategyOptions) DeepCopy() *SupplementalGroupsStrategyOptions {
485 out := new(SupplementalGroupsStrategyOptions)