zz_generated.deepcopy.go 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. // +build !ignore_autogenerated
  2. /*
  3. Copyright The Kubernetes Authors.
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. */
  14. // Code generated by deepcopy-gen. DO NOT EDIT.
  15. package v1
  16. import (
  17. corev1 "k8s.io/api/core/v1"
  18. metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
  19. runtime "k8s.io/apimachinery/pkg/runtime"
  20. intstr "k8s.io/apimachinery/pkg/util/intstr"
  21. )
  22. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  23. func (in *IPBlock) DeepCopyInto(out *IPBlock) {
  24. *out = *in
  25. if in.Except != nil {
  26. in, out := &in.Except, &out.Except
  27. *out = make([]string, len(*in))
  28. copy(*out, *in)
  29. }
  30. return
  31. }
  32. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPBlock.
  33. func (in *IPBlock) DeepCopy() *IPBlock {
  34. if in == nil {
  35. return nil
  36. }
  37. out := new(IPBlock)
  38. in.DeepCopyInto(out)
  39. return out
  40. }
  41. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  42. func (in *NetworkPolicy) DeepCopyInto(out *NetworkPolicy) {
  43. *out = *in
  44. out.TypeMeta = in.TypeMeta
  45. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  46. in.Spec.DeepCopyInto(&out.Spec)
  47. return
  48. }
  49. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicy.
  50. func (in *NetworkPolicy) DeepCopy() *NetworkPolicy {
  51. if in == nil {
  52. return nil
  53. }
  54. out := new(NetworkPolicy)
  55. in.DeepCopyInto(out)
  56. return out
  57. }
  58. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  59. func (in *NetworkPolicy) DeepCopyObject() runtime.Object {
  60. if c := in.DeepCopy(); c != nil {
  61. return c
  62. }
  63. return nil
  64. }
  65. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  66. func (in *NetworkPolicyEgressRule) DeepCopyInto(out *NetworkPolicyEgressRule) {
  67. *out = *in
  68. if in.Ports != nil {
  69. in, out := &in.Ports, &out.Ports
  70. *out = make([]NetworkPolicyPort, len(*in))
  71. for i := range *in {
  72. (*in)[i].DeepCopyInto(&(*out)[i])
  73. }
  74. }
  75. if in.To != nil {
  76. in, out := &in.To, &out.To
  77. *out = make([]NetworkPolicyPeer, len(*in))
  78. for i := range *in {
  79. (*in)[i].DeepCopyInto(&(*out)[i])
  80. }
  81. }
  82. return
  83. }
  84. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyEgressRule.
  85. func (in *NetworkPolicyEgressRule) DeepCopy() *NetworkPolicyEgressRule {
  86. if in == nil {
  87. return nil
  88. }
  89. out := new(NetworkPolicyEgressRule)
  90. in.DeepCopyInto(out)
  91. return out
  92. }
  93. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  94. func (in *NetworkPolicyIngressRule) DeepCopyInto(out *NetworkPolicyIngressRule) {
  95. *out = *in
  96. if in.Ports != nil {
  97. in, out := &in.Ports, &out.Ports
  98. *out = make([]NetworkPolicyPort, len(*in))
  99. for i := range *in {
  100. (*in)[i].DeepCopyInto(&(*out)[i])
  101. }
  102. }
  103. if in.From != nil {
  104. in, out := &in.From, &out.From
  105. *out = make([]NetworkPolicyPeer, len(*in))
  106. for i := range *in {
  107. (*in)[i].DeepCopyInto(&(*out)[i])
  108. }
  109. }
  110. return
  111. }
  112. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyIngressRule.
  113. func (in *NetworkPolicyIngressRule) DeepCopy() *NetworkPolicyIngressRule {
  114. if in == nil {
  115. return nil
  116. }
  117. out := new(NetworkPolicyIngressRule)
  118. in.DeepCopyInto(out)
  119. return out
  120. }
  121. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  122. func (in *NetworkPolicyList) DeepCopyInto(out *NetworkPolicyList) {
  123. *out = *in
  124. out.TypeMeta = in.TypeMeta
  125. out.ListMeta = in.ListMeta
  126. if in.Items != nil {
  127. in, out := &in.Items, &out.Items
  128. *out = make([]NetworkPolicy, len(*in))
  129. for i := range *in {
  130. (*in)[i].DeepCopyInto(&(*out)[i])
  131. }
  132. }
  133. return
  134. }
  135. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyList.
  136. func (in *NetworkPolicyList) DeepCopy() *NetworkPolicyList {
  137. if in == nil {
  138. return nil
  139. }
  140. out := new(NetworkPolicyList)
  141. in.DeepCopyInto(out)
  142. return out
  143. }
  144. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  145. func (in *NetworkPolicyList) DeepCopyObject() runtime.Object {
  146. if c := in.DeepCopy(); c != nil {
  147. return c
  148. }
  149. return nil
  150. }
  151. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  152. func (in *NetworkPolicyPeer) DeepCopyInto(out *NetworkPolicyPeer) {
  153. *out = *in
  154. if in.PodSelector != nil {
  155. in, out := &in.PodSelector, &out.PodSelector
  156. *out = new(metav1.LabelSelector)
  157. (*in).DeepCopyInto(*out)
  158. }
  159. if in.NamespaceSelector != nil {
  160. in, out := &in.NamespaceSelector, &out.NamespaceSelector
  161. *out = new(metav1.LabelSelector)
  162. (*in).DeepCopyInto(*out)
  163. }
  164. if in.IPBlock != nil {
  165. in, out := &in.IPBlock, &out.IPBlock
  166. *out = new(IPBlock)
  167. (*in).DeepCopyInto(*out)
  168. }
  169. return
  170. }
  171. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyPeer.
  172. func (in *NetworkPolicyPeer) DeepCopy() *NetworkPolicyPeer {
  173. if in == nil {
  174. return nil
  175. }
  176. out := new(NetworkPolicyPeer)
  177. in.DeepCopyInto(out)
  178. return out
  179. }
  180. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  181. func (in *NetworkPolicyPort) DeepCopyInto(out *NetworkPolicyPort) {
  182. *out = *in
  183. if in.Protocol != nil {
  184. in, out := &in.Protocol, &out.Protocol
  185. *out = new(corev1.Protocol)
  186. **out = **in
  187. }
  188. if in.Port != nil {
  189. in, out := &in.Port, &out.Port
  190. *out = new(intstr.IntOrString)
  191. **out = **in
  192. }
  193. return
  194. }
  195. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyPort.
  196. func (in *NetworkPolicyPort) DeepCopy() *NetworkPolicyPort {
  197. if in == nil {
  198. return nil
  199. }
  200. out := new(NetworkPolicyPort)
  201. in.DeepCopyInto(out)
  202. return out
  203. }
  204. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  205. func (in *NetworkPolicySpec) DeepCopyInto(out *NetworkPolicySpec) {
  206. *out = *in
  207. in.PodSelector.DeepCopyInto(&out.PodSelector)
  208. if in.Ingress != nil {
  209. in, out := &in.Ingress, &out.Ingress
  210. *out = make([]NetworkPolicyIngressRule, len(*in))
  211. for i := range *in {
  212. (*in)[i].DeepCopyInto(&(*out)[i])
  213. }
  214. }
  215. if in.Egress != nil {
  216. in, out := &in.Egress, &out.Egress
  217. *out = make([]NetworkPolicyEgressRule, len(*in))
  218. for i := range *in {
  219. (*in)[i].DeepCopyInto(&(*out)[i])
  220. }
  221. }
  222. if in.PolicyTypes != nil {
  223. in, out := &in.PolicyTypes, &out.PolicyTypes
  224. *out = make([]PolicyType, len(*in))
  225. copy(*out, *in)
  226. }
  227. return
  228. }
  229. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicySpec.
  230. func (in *NetworkPolicySpec) DeepCopy() *NetworkPolicySpec {
  231. if in == nil {
  232. return nil
  233. }
  234. out := new(NetworkPolicySpec)
  235. in.DeepCopyInto(out)
  236. return out
  237. }