blob: 0037638a8d869ee32fdccc8bd4378ce6f048c932 [file] [log] [blame]
Matthias Andreas Benkard832a54e2019-01-29 09:27:38 +01001// +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 meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
26 runtime "k8s.io/apimachinery/pkg/runtime"
27 intstr "k8s.io/apimachinery/pkg/util/intstr"
28)
29
30// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
31func (in *IPBlock) DeepCopyInto(out *IPBlock) {
32 *out = *in
33 if in.Except != nil {
34 in, out := &in.Except, &out.Except
35 *out = make([]string, len(*in))
36 copy(*out, *in)
37 }
38 return
39}
40
41// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPBlock.
42func (in *IPBlock) DeepCopy() *IPBlock {
43 if in == nil {
44 return nil
45 }
46 out := new(IPBlock)
47 in.DeepCopyInto(out)
48 return out
49}
50
51// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
52func (in *NetworkPolicy) DeepCopyInto(out *NetworkPolicy) {
53 *out = *in
54 out.TypeMeta = in.TypeMeta
55 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
56 in.Spec.DeepCopyInto(&out.Spec)
57 return
58}
59
60// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicy.
61func (in *NetworkPolicy) DeepCopy() *NetworkPolicy {
62 if in == nil {
63 return nil
64 }
65 out := new(NetworkPolicy)
66 in.DeepCopyInto(out)
67 return out
68}
69
70// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
71func (in *NetworkPolicy) DeepCopyObject() runtime.Object {
72 if c := in.DeepCopy(); c != nil {
73 return c
74 }
75 return nil
76}
77
78// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
79func (in *NetworkPolicyEgressRule) DeepCopyInto(out *NetworkPolicyEgressRule) {
80 *out = *in
81 if in.Ports != nil {
82 in, out := &in.Ports, &out.Ports
83 *out = make([]NetworkPolicyPort, len(*in))
84 for i := range *in {
85 (*in)[i].DeepCopyInto(&(*out)[i])
86 }
87 }
88 if in.To != nil {
89 in, out := &in.To, &out.To
90 *out = make([]NetworkPolicyPeer, len(*in))
91 for i := range *in {
92 (*in)[i].DeepCopyInto(&(*out)[i])
93 }
94 }
95 return
96}
97
98// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyEgressRule.
99func (in *NetworkPolicyEgressRule) DeepCopy() *NetworkPolicyEgressRule {
100 if in == nil {
101 return nil
102 }
103 out := new(NetworkPolicyEgressRule)
104 in.DeepCopyInto(out)
105 return out
106}
107
108// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
109func (in *NetworkPolicyIngressRule) DeepCopyInto(out *NetworkPolicyIngressRule) {
110 *out = *in
111 if in.Ports != nil {
112 in, out := &in.Ports, &out.Ports
113 *out = make([]NetworkPolicyPort, len(*in))
114 for i := range *in {
115 (*in)[i].DeepCopyInto(&(*out)[i])
116 }
117 }
118 if in.From != nil {
119 in, out := &in.From, &out.From
120 *out = make([]NetworkPolicyPeer, len(*in))
121 for i := range *in {
122 (*in)[i].DeepCopyInto(&(*out)[i])
123 }
124 }
125 return
126}
127
128// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyIngressRule.
129func (in *NetworkPolicyIngressRule) DeepCopy() *NetworkPolicyIngressRule {
130 if in == nil {
131 return nil
132 }
133 out := new(NetworkPolicyIngressRule)
134 in.DeepCopyInto(out)
135 return out
136}
137
138// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
139func (in *NetworkPolicyList) DeepCopyInto(out *NetworkPolicyList) {
140 *out = *in
141 out.TypeMeta = in.TypeMeta
142 out.ListMeta = in.ListMeta
143 if in.Items != nil {
144 in, out := &in.Items, &out.Items
145 *out = make([]NetworkPolicy, len(*in))
146 for i := range *in {
147 (*in)[i].DeepCopyInto(&(*out)[i])
148 }
149 }
150 return
151}
152
153// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyList.
154func (in *NetworkPolicyList) DeepCopy() *NetworkPolicyList {
155 if in == nil {
156 return nil
157 }
158 out := new(NetworkPolicyList)
159 in.DeepCopyInto(out)
160 return out
161}
162
163// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
164func (in *NetworkPolicyList) DeepCopyObject() runtime.Object {
165 if c := in.DeepCopy(); c != nil {
166 return c
167 }
168 return nil
169}
170
171// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
172func (in *NetworkPolicyPeer) DeepCopyInto(out *NetworkPolicyPeer) {
173 *out = *in
174 if in.PodSelector != nil {
175 in, out := &in.PodSelector, &out.PodSelector
176 if *in == nil {
177 *out = nil
178 } else {
179 *out = new(meta_v1.LabelSelector)
180 (*in).DeepCopyInto(*out)
181 }
182 }
183 if in.NamespaceSelector != nil {
184 in, out := &in.NamespaceSelector, &out.NamespaceSelector
185 if *in == nil {
186 *out = nil
187 } else {
188 *out = new(meta_v1.LabelSelector)
189 (*in).DeepCopyInto(*out)
190 }
191 }
192 if in.IPBlock != nil {
193 in, out := &in.IPBlock, &out.IPBlock
194 if *in == nil {
195 *out = nil
196 } else {
197 *out = new(IPBlock)
198 (*in).DeepCopyInto(*out)
199 }
200 }
201 return
202}
203
204// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyPeer.
205func (in *NetworkPolicyPeer) DeepCopy() *NetworkPolicyPeer {
206 if in == nil {
207 return nil
208 }
209 out := new(NetworkPolicyPeer)
210 in.DeepCopyInto(out)
211 return out
212}
213
214// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
215func (in *NetworkPolicyPort) DeepCopyInto(out *NetworkPolicyPort) {
216 *out = *in
217 if in.Protocol != nil {
218 in, out := &in.Protocol, &out.Protocol
219 if *in == nil {
220 *out = nil
221 } else {
222 *out = new(core_v1.Protocol)
223 **out = **in
224 }
225 }
226 if in.Port != nil {
227 in, out := &in.Port, &out.Port
228 if *in == nil {
229 *out = nil
230 } else {
231 *out = new(intstr.IntOrString)
232 **out = **in
233 }
234 }
235 return
236}
237
238// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyPort.
239func (in *NetworkPolicyPort) DeepCopy() *NetworkPolicyPort {
240 if in == nil {
241 return nil
242 }
243 out := new(NetworkPolicyPort)
244 in.DeepCopyInto(out)
245 return out
246}
247
248// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
249func (in *NetworkPolicySpec) DeepCopyInto(out *NetworkPolicySpec) {
250 *out = *in
251 in.PodSelector.DeepCopyInto(&out.PodSelector)
252 if in.Ingress != nil {
253 in, out := &in.Ingress, &out.Ingress
254 *out = make([]NetworkPolicyIngressRule, len(*in))
255 for i := range *in {
256 (*in)[i].DeepCopyInto(&(*out)[i])
257 }
258 }
259 if in.Egress != nil {
260 in, out := &in.Egress, &out.Egress
261 *out = make([]NetworkPolicyEgressRule, len(*in))
262 for i := range *in {
263 (*in)[i].DeepCopyInto(&(*out)[i])
264 }
265 }
266 if in.PolicyTypes != nil {
267 in, out := &in.PolicyTypes, &out.PolicyTypes
268 *out = make([]PolicyType, len(*in))
269 copy(*out, *in)
270 }
271 return
272}
273
274// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicySpec.
275func (in *NetworkPolicySpec) DeepCopy() *NetworkPolicySpec {
276 if in == nil {
277 return nil
278 }
279 out := new(NetworkPolicySpec)
280 in.DeepCopyInto(out)
281 return out
282}