github.com/banzaicloud/operator-tools@v0.28.10/pkg/volume/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 volume 21 22 import ( 23 "k8s.io/api/core/v1" 24 ) 25 26 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 27 func (in *KubernetesVolume) DeepCopyInto(out *KubernetesVolume) { 28 *out = *in 29 if in.HostPathLegacy != nil { 30 in, out := &in.HostPathLegacy, &out.HostPathLegacy 31 *out = new(v1.HostPathVolumeSource) 32 (*in).DeepCopyInto(*out) 33 } 34 if in.HostPath != nil { 35 in, out := &in.HostPath, &out.HostPath 36 *out = new(v1.HostPathVolumeSource) 37 (*in).DeepCopyInto(*out) 38 } 39 if in.EmptyDir != nil { 40 in, out := &in.EmptyDir, &out.EmptyDir 41 *out = new(v1.EmptyDirVolumeSource) 42 (*in).DeepCopyInto(*out) 43 } 44 if in.PersistentVolumeClaim != nil { 45 in, out := &in.PersistentVolumeClaim, &out.PersistentVolumeClaim 46 *out = new(PersistentVolumeClaim) 47 (*in).DeepCopyInto(*out) 48 } 49 } 50 51 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubernetesVolume. 52 func (in *KubernetesVolume) DeepCopy() *KubernetesVolume { 53 if in == nil { 54 return nil 55 } 56 out := new(KubernetesVolume) 57 in.DeepCopyInto(out) 58 return out 59 } 60 61 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 62 func (in *PersistentVolumeClaim) DeepCopyInto(out *PersistentVolumeClaim) { 63 *out = *in 64 in.PersistentVolumeClaimSpec.DeepCopyInto(&out.PersistentVolumeClaimSpec) 65 out.PersistentVolumeSource = in.PersistentVolumeSource 66 } 67 68 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersistentVolumeClaim. 69 func (in *PersistentVolumeClaim) DeepCopy() *PersistentVolumeClaim { 70 if in == nil { 71 return nil 72 } 73 out := new(PersistentVolumeClaim) 74 in.DeepCopyInto(out) 75 return out 76 }