1// +build !ignore_autogenerated 2 3/* 4Copyright The Kubernetes Authors. 5 6Licensed under the Apache License, Version 2.0 (the "License"); 7you may not use this file except in compliance with the License. 8You may obtain a copy of the License at 9 10 http://www.apache.org/licenses/LICENSE-2.0 11 12Unless required by applicable law or agreed to in writing, software 13distributed under the License is distributed on an "AS IS" BASIS, 14WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15See the License for the specific language governing permissions and 16limitations under the License. 17*/ 18 19// Code generated by deepcopy-gen. DO NOT EDIT. 20 21package v1 22 23import ( 24 core_v1 "k8s.io/api/core/v1" 25 runtime "k8s.io/apimachinery/pkg/runtime" 26) 27 28// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 29func (in *StorageClass) DeepCopyInto(out *StorageClass) { 30 *out = *in 31 out.TypeMeta = in.TypeMeta 32 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 33 if in.Parameters != nil { 34 in, out := &in.Parameters, &out.Parameters 35 *out = make(map[string]string, len(*in)) 36 for key, val := range *in { 37 (*out)[key] = val 38 } 39 } 40 if in.ReclaimPolicy != nil { 41 in, out := &in.ReclaimPolicy, &out.ReclaimPolicy 42 if *in == nil { 43 *out = nil 44 } else { 45 *out = new(core_v1.PersistentVolumeReclaimPolicy) 46 **out = **in 47 } 48 } 49 if in.MountOptions != nil { 50 in, out := &in.MountOptions, &out.MountOptions 51 *out = make([]string, len(*in)) 52 copy(*out, *in) 53 } 54 if in.AllowVolumeExpansion != nil { 55 in, out := &in.AllowVolumeExpansion, &out.AllowVolumeExpansion 56 if *in == nil { 57 *out = nil 58 } else { 59 *out = new(bool) 60 **out = **in 61 } 62 } 63 if in.VolumeBindingMode != nil { 64 in, out := &in.VolumeBindingMode, &out.VolumeBindingMode 65 if *in == nil { 66 *out = nil 67 } else { 68 *out = new(VolumeBindingMode) 69 **out = **in 70 } 71 } 72 return 73} 74 75// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClass. 76func (in *StorageClass) DeepCopy() *StorageClass { 77 if in == nil { 78 return nil 79 } 80 out := new(StorageClass) 81 in.DeepCopyInto(out) 82 return out 83} 84 85// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 86func (in *StorageClass) DeepCopyObject() runtime.Object { 87 if c := in.DeepCopy(); c != nil { 88 return c 89 } 90 return nil 91} 92 93// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 94func (in *StorageClassList) DeepCopyInto(out *StorageClassList) { 95 *out = *in 96 out.TypeMeta = in.TypeMeta 97 out.ListMeta = in.ListMeta 98 if in.Items != nil { 99 in, out := &in.Items, &out.Items 100 *out = make([]StorageClass, len(*in)) 101 for i := range *in { 102 (*in)[i].DeepCopyInto(&(*out)[i]) 103 } 104 } 105 return 106} 107 108// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClassList. 109func (in *StorageClassList) DeepCopy() *StorageClassList { 110 if in == nil { 111 return nil 112 } 113 out := new(StorageClassList) 114 in.DeepCopyInto(out) 115 return out 116} 117 118// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 119func (in *StorageClassList) DeepCopyObject() runtime.Object { 120 if c := in.DeepCopy(); c != nil { 121 return c 122 } 123 return nil 124} 125