2017-05-09 16:16:12 +00:00
|
|
|
// +build !ignore_autogenerated
|
|
|
|
|
|
|
|
/*
|
|
|
|
Copyright 2017 The Kubernetes Authors.
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
// This file was autogenerated by deepcopy-gen. Do not edit it manually!
|
|
|
|
|
|
|
|
package admission
|
|
|
|
|
|
|
|
import (
|
|
|
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
|
|
conversion "k8s.io/apimachinery/pkg/conversion"
|
|
|
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
|
|
|
reflect "reflect"
|
|
|
|
)
|
|
|
|
|
2017-07-06 08:07:09 +00:00
|
|
|
// Deprecated: register deep-copy functions.
|
2017-05-09 16:16:12 +00:00
|
|
|
func init() {
|
|
|
|
SchemeBuilder.Register(RegisterDeepCopies)
|
|
|
|
}
|
|
|
|
|
2017-07-06 08:07:09 +00:00
|
|
|
// Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
|
2017-05-09 16:16:12 +00:00
|
|
|
// to allow building arbitrary schemes.
|
|
|
|
func RegisterDeepCopies(scheme *runtime.Scheme) error {
|
|
|
|
return scheme.AddGeneratedDeepCopyFuncs(
|
2017-07-06 08:07:09 +00:00
|
|
|
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
|
|
|
in.(*AdmissionReview).DeepCopyInto(out.(*AdmissionReview))
|
|
|
|
return nil
|
|
|
|
}, InType: reflect.TypeOf(&AdmissionReview{})},
|
|
|
|
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
|
|
|
in.(*AdmissionReviewSpec).DeepCopyInto(out.(*AdmissionReviewSpec))
|
|
|
|
return nil
|
|
|
|
}, InType: reflect.TypeOf(&AdmissionReviewSpec{})},
|
|
|
|
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
|
|
|
in.(*AdmissionReviewStatus).DeepCopyInto(out.(*AdmissionReviewStatus))
|
|
|
|
return nil
|
|
|
|
}, InType: reflect.TypeOf(&AdmissionReviewStatus{})},
|
2017-05-09 16:16:12 +00:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2017-07-06 08:07:09 +00:00
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
|
|
func (in *AdmissionReview) DeepCopyInto(out *AdmissionReview) {
|
|
|
|
*out = *in
|
|
|
|
out.TypeMeta = in.TypeMeta
|
|
|
|
in.Spec.DeepCopyInto(&out.Spec)
|
|
|
|
in.Status.DeepCopyInto(&out.Status)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionReview.
|
|
|
|
func (x *AdmissionReview) DeepCopy() *AdmissionReview {
|
|
|
|
if x == nil {
|
2017-05-09 16:16:12 +00:00
|
|
|
return nil
|
|
|
|
}
|
2017-07-06 08:07:09 +00:00
|
|
|
out := new(AdmissionReview)
|
|
|
|
x.DeepCopyInto(out)
|
|
|
|
return out
|
2017-05-09 16:16:12 +00:00
|
|
|
}
|
|
|
|
|
2017-07-06 08:07:09 +00:00
|
|
|
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
|
|
func (x *AdmissionReview) DeepCopyObject() runtime.Object {
|
|
|
|
if c := x.DeepCopy(); c != nil {
|
|
|
|
return c
|
|
|
|
} else {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
|
|
func (in *AdmissionReviewSpec) DeepCopyInto(out *AdmissionReviewSpec) {
|
|
|
|
*out = *in
|
|
|
|
out.Kind = in.Kind
|
|
|
|
if in.Object == nil {
|
|
|
|
out.Object = nil
|
|
|
|
} else {
|
|
|
|
out.Object = in.Object.DeepCopyObject()
|
|
|
|
}
|
|
|
|
if in.OldObject == nil {
|
|
|
|
out.OldObject = nil
|
|
|
|
} else {
|
|
|
|
out.OldObject = in.OldObject.DeepCopyObject()
|
|
|
|
}
|
|
|
|
out.Resource = in.Resource
|
|
|
|
in.UserInfo.DeepCopyInto(&out.UserInfo)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionReviewSpec.
|
|
|
|
func (x *AdmissionReviewSpec) DeepCopy() *AdmissionReviewSpec {
|
|
|
|
if x == nil {
|
2017-05-09 16:16:12 +00:00
|
|
|
return nil
|
|
|
|
}
|
2017-07-06 08:07:09 +00:00
|
|
|
out := new(AdmissionReviewSpec)
|
|
|
|
x.DeepCopyInto(out)
|
|
|
|
return out
|
2017-05-09 16:16:12 +00:00
|
|
|
}
|
|
|
|
|
2017-07-06 08:07:09 +00:00
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
|
|
func (in *AdmissionReviewStatus) DeepCopyInto(out *AdmissionReviewStatus) {
|
|
|
|
*out = *in
|
|
|
|
if in.Result != nil {
|
|
|
|
in, out := &in.Result, &out.Result
|
|
|
|
if *in == nil {
|
|
|
|
*out = nil
|
|
|
|
} else {
|
|
|
|
*out = new(v1.Status)
|
|
|
|
(*in).DeepCopyInto(*out)
|
2017-05-09 16:16:12 +00:00
|
|
|
}
|
2017-07-06 08:07:09 +00:00
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionReviewStatus.
|
|
|
|
func (x *AdmissionReviewStatus) DeepCopy() *AdmissionReviewStatus {
|
|
|
|
if x == nil {
|
2017-05-09 16:16:12 +00:00
|
|
|
return nil
|
|
|
|
}
|
2017-07-06 08:07:09 +00:00
|
|
|
out := new(AdmissionReviewStatus)
|
|
|
|
x.DeepCopyInto(out)
|
|
|
|
return out
|
2017-05-09 16:16:12 +00:00
|
|
|
}
|