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 v1 "k8s.io/api/core/v1"
25 runtime "k8s.io/apimachinery/pkg/runtime"
28 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
29 func (in *StorageClass) DeepCopyInto(out *StorageClass) {
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 {
40 if in.ReclaimPolicy != nil {
41 in, out := &in.ReclaimPolicy, &out.ReclaimPolicy
42 *out = new(v1.PersistentVolumeReclaimPolicy)
45 if in.MountOptions != nil {
46 in, out := &in.MountOptions, &out.MountOptions
47 *out = make([]string, len(*in))
50 if in.AllowVolumeExpansion != nil {
51 in, out := &in.AllowVolumeExpansion, &out.AllowVolumeExpansion
55 if in.VolumeBindingMode != nil {
56 in, out := &in.VolumeBindingMode, &out.VolumeBindingMode
57 *out = new(VolumeBindingMode)
60 if in.AllowedTopologies != nil {
61 in, out := &in.AllowedTopologies, &out.AllowedTopologies
62 *out = make([]v1.TopologySelectorTerm, len(*in))
64 (*in)[i].DeepCopyInto(&(*out)[i])
70 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClass.
71 func (in *StorageClass) DeepCopy() *StorageClass {
75 out := new(StorageClass)
80 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
81 func (in *StorageClass) DeepCopyObject() runtime.Object {
82 if c := in.DeepCopy(); c != nil {
88 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
89 func (in *StorageClassList) DeepCopyInto(out *StorageClassList) {
91 out.TypeMeta = in.TypeMeta
92 out.ListMeta = in.ListMeta
94 in, out := &in.Items, &out.Items
95 *out = make([]StorageClass, len(*in))
97 (*in)[i].DeepCopyInto(&(*out)[i])
103 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClassList.
104 func (in *StorageClassList) DeepCopy() *StorageClassList {
108 out := new(StorageClassList)
113 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
114 func (in *StorageClassList) DeepCopyObject() runtime.Object {
115 if c := in.DeepCopy(); c != nil {
121 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
122 func (in *VolumeAttachment) DeepCopyInto(out *VolumeAttachment) {
124 out.TypeMeta = in.TypeMeta
125 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
126 in.Spec.DeepCopyInto(&out.Spec)
127 in.Status.DeepCopyInto(&out.Status)
131 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachment.
132 func (in *VolumeAttachment) DeepCopy() *VolumeAttachment {
136 out := new(VolumeAttachment)
141 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
142 func (in *VolumeAttachment) DeepCopyObject() runtime.Object {
143 if c := in.DeepCopy(); c != nil {
149 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
150 func (in *VolumeAttachmentList) DeepCopyInto(out *VolumeAttachmentList) {
152 out.TypeMeta = in.TypeMeta
153 out.ListMeta = in.ListMeta
155 in, out := &in.Items, &out.Items
156 *out = make([]VolumeAttachment, len(*in))
158 (*in)[i].DeepCopyInto(&(*out)[i])
164 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachmentList.
165 func (in *VolumeAttachmentList) DeepCopy() *VolumeAttachmentList {
169 out := new(VolumeAttachmentList)
174 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
175 func (in *VolumeAttachmentList) DeepCopyObject() runtime.Object {
176 if c := in.DeepCopy(); c != nil {
182 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
183 func (in *VolumeAttachmentSource) DeepCopyInto(out *VolumeAttachmentSource) {
185 if in.PersistentVolumeName != nil {
186 in, out := &in.PersistentVolumeName, &out.PersistentVolumeName
193 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachmentSource.
194 func (in *VolumeAttachmentSource) DeepCopy() *VolumeAttachmentSource {
198 out := new(VolumeAttachmentSource)
203 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
204 func (in *VolumeAttachmentSpec) DeepCopyInto(out *VolumeAttachmentSpec) {
206 in.Source.DeepCopyInto(&out.Source)
210 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachmentSpec.
211 func (in *VolumeAttachmentSpec) DeepCopy() *VolumeAttachmentSpec {
215 out := new(VolumeAttachmentSpec)
220 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
221 func (in *VolumeAttachmentStatus) DeepCopyInto(out *VolumeAttachmentStatus) {
223 if in.AttachmentMetadata != nil {
224 in, out := &in.AttachmentMetadata, &out.AttachmentMetadata
225 *out = make(map[string]string, len(*in))
226 for key, val := range *in {
230 if in.AttachError != nil {
231 in, out := &in.AttachError, &out.AttachError
232 *out = new(VolumeError)
233 (*in).DeepCopyInto(*out)
235 if in.DetachError != nil {
236 in, out := &in.DetachError, &out.DetachError
237 *out = new(VolumeError)
238 (*in).DeepCopyInto(*out)
243 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachmentStatus.
244 func (in *VolumeAttachmentStatus) DeepCopy() *VolumeAttachmentStatus {
248 out := new(VolumeAttachmentStatus)
253 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
254 func (in *VolumeError) DeepCopyInto(out *VolumeError) {
256 in.Time.DeepCopyInto(&out.Time)
260 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeError.
261 func (in *VolumeError) DeepCopy() *VolumeError {
265 out := new(VolumeError)