2017-05-27 19:26:33 +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 networking
|
|
|
|
|
|
|
|
import (
|
|
|
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
|
|
conversion "k8s.io/apimachinery/pkg/conversion"
|
|
|
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
|
|
|
intstr "k8s.io/apimachinery/pkg/util/intstr"
|
|
|
|
api "k8s.io/kubernetes/pkg/api"
|
|
|
|
reflect "reflect"
|
|
|
|
)
|
|
|
|
|
2017-07-06 08:07:09 +00:00
|
|
|
// Deprecated: register deep-copy functions.
|
2017-05-27 19:26:33 +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-27 19:26:33 +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.(*NetworkPolicy).DeepCopyInto(out.(*NetworkPolicy))
|
|
|
|
return nil
|
|
|
|
}, InType: reflect.TypeOf(&NetworkPolicy{})},
|
|
|
|
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
|
|
|
in.(*NetworkPolicyIngressRule).DeepCopyInto(out.(*NetworkPolicyIngressRule))
|
|
|
|
return nil
|
|
|
|
}, InType: reflect.TypeOf(&NetworkPolicyIngressRule{})},
|
|
|
|
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
|
|
|
in.(*NetworkPolicyList).DeepCopyInto(out.(*NetworkPolicyList))
|
|
|
|
return nil
|
|
|
|
}, InType: reflect.TypeOf(&NetworkPolicyList{})},
|
|
|
|
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
|
|
|
in.(*NetworkPolicyPeer).DeepCopyInto(out.(*NetworkPolicyPeer))
|
|
|
|
return nil
|
|
|
|
}, InType: reflect.TypeOf(&NetworkPolicyPeer{})},
|
|
|
|
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
|
|
|
in.(*NetworkPolicyPort).DeepCopyInto(out.(*NetworkPolicyPort))
|
|
|
|
return nil
|
|
|
|
}, InType: reflect.TypeOf(&NetworkPolicyPort{})},
|
|
|
|
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
|
|
|
in.(*NetworkPolicySpec).DeepCopyInto(out.(*NetworkPolicySpec))
|
|
|
|
return nil
|
|
|
|
}, InType: reflect.TypeOf(&NetworkPolicySpec{})},
|
2017-05-27 19:26:33 +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 *NetworkPolicy) DeepCopyInto(out *NetworkPolicy) {
|
|
|
|
*out = *in
|
|
|
|
out.TypeMeta = in.TypeMeta
|
|
|
|
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
|
|
|
in.Spec.DeepCopyInto(&out.Spec)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicy.
|
|
|
|
func (x *NetworkPolicy) DeepCopy() *NetworkPolicy {
|
|
|
|
if x == nil {
|
2017-05-27 19:26:33 +00:00
|
|
|
return nil
|
|
|
|
}
|
2017-07-06 08:07:09 +00:00
|
|
|
out := new(NetworkPolicy)
|
|
|
|
x.DeepCopyInto(out)
|
|
|
|
return out
|
2017-05-27 19:26:33 +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 *NetworkPolicy) 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 *NetworkPolicyIngressRule) DeepCopyInto(out *NetworkPolicyIngressRule) {
|
|
|
|
*out = *in
|
|
|
|
if in.Ports != nil {
|
|
|
|
in, out := &in.Ports, &out.Ports
|
|
|
|
*out = make([]NetworkPolicyPort, len(*in))
|
|
|
|
for i := range *in {
|
|
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
2017-05-27 19:26:33 +00:00
|
|
|
}
|
2017-07-06 08:07:09 +00:00
|
|
|
}
|
|
|
|
if in.From != nil {
|
|
|
|
in, out := &in.From, &out.From
|
|
|
|
*out = make([]NetworkPolicyPeer, len(*in))
|
|
|
|
for i := range *in {
|
|
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
2017-05-27 19:26:33 +00:00
|
|
|
}
|
2017-07-06 08:07:09 +00:00
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyIngressRule.
|
|
|
|
func (x *NetworkPolicyIngressRule) DeepCopy() *NetworkPolicyIngressRule {
|
|
|
|
if x == nil {
|
2017-05-27 19:26:33 +00:00
|
|
|
return nil
|
|
|
|
}
|
2017-07-06 08:07:09 +00:00
|
|
|
out := new(NetworkPolicyIngressRule)
|
|
|
|
x.DeepCopyInto(out)
|
|
|
|
return out
|
2017-05-27 19:26:33 +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 *NetworkPolicyList) DeepCopyInto(out *NetworkPolicyList) {
|
|
|
|
*out = *in
|
|
|
|
out.TypeMeta = in.TypeMeta
|
|
|
|
out.ListMeta = in.ListMeta
|
|
|
|
if in.Items != nil {
|
|
|
|
in, out := &in.Items, &out.Items
|
|
|
|
*out = make([]NetworkPolicy, len(*in))
|
|
|
|
for i := range *in {
|
|
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
2017-05-27 19:26:33 +00:00
|
|
|
}
|
2017-07-06 08:07:09 +00:00
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyList.
|
|
|
|
func (x *NetworkPolicyList) DeepCopy() *NetworkPolicyList {
|
|
|
|
if x == nil {
|
2017-05-27 19:26:33 +00:00
|
|
|
return nil
|
|
|
|
}
|
2017-07-06 08:07:09 +00:00
|
|
|
out := new(NetworkPolicyList)
|
|
|
|
x.DeepCopyInto(out)
|
|
|
|
return out
|
2017-05-27 19:26:33 +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 *NetworkPolicyList) 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 *NetworkPolicyPeer) DeepCopyInto(out *NetworkPolicyPeer) {
|
|
|
|
*out = *in
|
|
|
|
if in.PodSelector != nil {
|
|
|
|
in, out := &in.PodSelector, &out.PodSelector
|
|
|
|
if *in == nil {
|
|
|
|
*out = nil
|
|
|
|
} else {
|
|
|
|
*out = new(v1.LabelSelector)
|
|
|
|
(*in).DeepCopyInto(*out)
|
2017-05-27 19:26:33 +00:00
|
|
|
}
|
2017-07-06 08:07:09 +00:00
|
|
|
}
|
|
|
|
if in.NamespaceSelector != nil {
|
|
|
|
in, out := &in.NamespaceSelector, &out.NamespaceSelector
|
|
|
|
if *in == nil {
|
|
|
|
*out = nil
|
|
|
|
} else {
|
|
|
|
*out = new(v1.LabelSelector)
|
|
|
|
(*in).DeepCopyInto(*out)
|
2017-05-27 19:26:33 +00:00
|
|
|
}
|
2017-07-06 08:07:09 +00:00
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyPeer.
|
|
|
|
func (x *NetworkPolicyPeer) DeepCopy() *NetworkPolicyPeer {
|
|
|
|
if x == nil {
|
2017-05-27 19:26:33 +00:00
|
|
|
return nil
|
|
|
|
}
|
2017-07-06 08:07:09 +00:00
|
|
|
out := new(NetworkPolicyPeer)
|
|
|
|
x.DeepCopyInto(out)
|
|
|
|
return out
|
2017-05-27 19:26:33 +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 *NetworkPolicyPort) DeepCopyInto(out *NetworkPolicyPort) {
|
|
|
|
*out = *in
|
|
|
|
if in.Protocol != nil {
|
|
|
|
in, out := &in.Protocol, &out.Protocol
|
|
|
|
if *in == nil {
|
|
|
|
*out = nil
|
|
|
|
} else {
|
2017-05-27 19:26:33 +00:00
|
|
|
*out = new(api.Protocol)
|
|
|
|
**out = **in
|
|
|
|
}
|
2017-07-06 08:07:09 +00:00
|
|
|
}
|
|
|
|
if in.Port != nil {
|
|
|
|
in, out := &in.Port, &out.Port
|
|
|
|
if *in == nil {
|
|
|
|
*out = nil
|
|
|
|
} else {
|
2017-05-27 19:26:33 +00:00
|
|
|
*out = new(intstr.IntOrString)
|
|
|
|
**out = **in
|
|
|
|
}
|
2017-07-06 08:07:09 +00:00
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyPort.
|
|
|
|
func (x *NetworkPolicyPort) DeepCopy() *NetworkPolicyPort {
|
|
|
|
if x == nil {
|
2017-05-27 19:26:33 +00:00
|
|
|
return nil
|
|
|
|
}
|
2017-07-06 08:07:09 +00:00
|
|
|
out := new(NetworkPolicyPort)
|
|
|
|
x.DeepCopyInto(out)
|
|
|
|
return out
|
2017-05-27 19:26:33 +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 *NetworkPolicySpec) DeepCopyInto(out *NetworkPolicySpec) {
|
|
|
|
*out = *in
|
|
|
|
in.PodSelector.DeepCopyInto(&out.PodSelector)
|
|
|
|
if in.Ingress != nil {
|
|
|
|
in, out := &in.Ingress, &out.Ingress
|
|
|
|
*out = make([]NetworkPolicyIngressRule, len(*in))
|
|
|
|
for i := range *in {
|
|
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
2017-05-27 19:26:33 +00:00
|
|
|
}
|
2017-07-06 08:07:09 +00:00
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicySpec.
|
|
|
|
func (x *NetworkPolicySpec) DeepCopy() *NetworkPolicySpec {
|
|
|
|
if x == nil {
|
2017-05-27 19:26:33 +00:00
|
|
|
return nil
|
|
|
|
}
|
2017-07-06 08:07:09 +00:00
|
|
|
out := new(NetworkPolicySpec)
|
|
|
|
x.DeepCopyInto(out)
|
|
|
|
return out
|
2017-05-27 19:26:33 +00:00
|
|
|
}
|