...

Source file src/k8s.io/kubernetes/pkg/apis/networking/zz_generated.deepcopy.go

Documentation: k8s.io/kubernetes/pkg/apis/networking

     1  //go:build !ignore_autogenerated
     2  // +build !ignore_autogenerated
     3  
     4  /*
     5  Copyright The Kubernetes Authors.
     6  
     7  Licensed under the Apache License, Version 2.0 (the "License");
     8  you may not use this file except in compliance with the License.
     9  You may obtain a copy of the License at
    10  
    11      http://www.apache.org/licenses/LICENSE-2.0
    12  
    13  Unless required by applicable law or agreed to in writing, software
    14  distributed under the License is distributed on an "AS IS" BASIS,
    15  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    16  See the License for the specific language governing permissions and
    17  limitations under the License.
    18  */
    19  
    20  // Code generated by deepcopy-gen. DO NOT EDIT.
    21  
    22  package networking
    23  
    24  import (
    25  	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    26  	runtime "k8s.io/apimachinery/pkg/runtime"
    27  	intstr "k8s.io/apimachinery/pkg/util/intstr"
    28  	core "k8s.io/kubernetes/pkg/apis/core"
    29  )
    30  
    31  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    32  func (in *HTTPIngressPath) DeepCopyInto(out *HTTPIngressPath) {
    33  	*out = *in
    34  	if in.PathType != nil {
    35  		in, out := &in.PathType, &out.PathType
    36  		*out = new(PathType)
    37  		**out = **in
    38  	}
    39  	in.Backend.DeepCopyInto(&out.Backend)
    40  	return
    41  }
    42  
    43  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPIngressPath.
    44  func (in *HTTPIngressPath) DeepCopy() *HTTPIngressPath {
    45  	if in == nil {
    46  		return nil
    47  	}
    48  	out := new(HTTPIngressPath)
    49  	in.DeepCopyInto(out)
    50  	return out
    51  }
    52  
    53  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    54  func (in *HTTPIngressRuleValue) DeepCopyInto(out *HTTPIngressRuleValue) {
    55  	*out = *in
    56  	if in.Paths != nil {
    57  		in, out := &in.Paths, &out.Paths
    58  		*out = make([]HTTPIngressPath, len(*in))
    59  		for i := range *in {
    60  			(*in)[i].DeepCopyInto(&(*out)[i])
    61  		}
    62  	}
    63  	return
    64  }
    65  
    66  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPIngressRuleValue.
    67  func (in *HTTPIngressRuleValue) DeepCopy() *HTTPIngressRuleValue {
    68  	if in == nil {
    69  		return nil
    70  	}
    71  	out := new(HTTPIngressRuleValue)
    72  	in.DeepCopyInto(out)
    73  	return out
    74  }
    75  
    76  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    77  func (in *IPAddress) DeepCopyInto(out *IPAddress) {
    78  	*out = *in
    79  	out.TypeMeta = in.TypeMeta
    80  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
    81  	in.Spec.DeepCopyInto(&out.Spec)
    82  	return
    83  }
    84  
    85  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAddress.
    86  func (in *IPAddress) DeepCopy() *IPAddress {
    87  	if in == nil {
    88  		return nil
    89  	}
    90  	out := new(IPAddress)
    91  	in.DeepCopyInto(out)
    92  	return out
    93  }
    94  
    95  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
    96  func (in *IPAddress) DeepCopyObject() runtime.Object {
    97  	if c := in.DeepCopy(); c != nil {
    98  		return c
    99  	}
   100  	return nil
   101  }
   102  
   103  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   104  func (in *IPAddressList) DeepCopyInto(out *IPAddressList) {
   105  	*out = *in
   106  	out.TypeMeta = in.TypeMeta
   107  	in.ListMeta.DeepCopyInto(&out.ListMeta)
   108  	if in.Items != nil {
   109  		in, out := &in.Items, &out.Items
   110  		*out = make([]IPAddress, len(*in))
   111  		for i := range *in {
   112  			(*in)[i].DeepCopyInto(&(*out)[i])
   113  		}
   114  	}
   115  	return
   116  }
   117  
   118  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAddressList.
   119  func (in *IPAddressList) DeepCopy() *IPAddressList {
   120  	if in == nil {
   121  		return nil
   122  	}
   123  	out := new(IPAddressList)
   124  	in.DeepCopyInto(out)
   125  	return out
   126  }
   127  
   128  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   129  func (in *IPAddressList) DeepCopyObject() runtime.Object {
   130  	if c := in.DeepCopy(); c != nil {
   131  		return c
   132  	}
   133  	return nil
   134  }
   135  
   136  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   137  func (in *IPAddressSpec) DeepCopyInto(out *IPAddressSpec) {
   138  	*out = *in
   139  	if in.ParentRef != nil {
   140  		in, out := &in.ParentRef, &out.ParentRef
   141  		*out = new(ParentReference)
   142  		**out = **in
   143  	}
   144  	return
   145  }
   146  
   147  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAddressSpec.
   148  func (in *IPAddressSpec) DeepCopy() *IPAddressSpec {
   149  	if in == nil {
   150  		return nil
   151  	}
   152  	out := new(IPAddressSpec)
   153  	in.DeepCopyInto(out)
   154  	return out
   155  }
   156  
   157  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   158  func (in *IPBlock) DeepCopyInto(out *IPBlock) {
   159  	*out = *in
   160  	if in.Except != nil {
   161  		in, out := &in.Except, &out.Except
   162  		*out = make([]string, len(*in))
   163  		copy(*out, *in)
   164  	}
   165  	return
   166  }
   167  
   168  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPBlock.
   169  func (in *IPBlock) DeepCopy() *IPBlock {
   170  	if in == nil {
   171  		return nil
   172  	}
   173  	out := new(IPBlock)
   174  	in.DeepCopyInto(out)
   175  	return out
   176  }
   177  
   178  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   179  func (in *Ingress) DeepCopyInto(out *Ingress) {
   180  	*out = *in
   181  	out.TypeMeta = in.TypeMeta
   182  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
   183  	in.Spec.DeepCopyInto(&out.Spec)
   184  	in.Status.DeepCopyInto(&out.Status)
   185  	return
   186  }
   187  
   188  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ingress.
   189  func (in *Ingress) DeepCopy() *Ingress {
   190  	if in == nil {
   191  		return nil
   192  	}
   193  	out := new(Ingress)
   194  	in.DeepCopyInto(out)
   195  	return out
   196  }
   197  
   198  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   199  func (in *Ingress) DeepCopyObject() runtime.Object {
   200  	if c := in.DeepCopy(); c != nil {
   201  		return c
   202  	}
   203  	return nil
   204  }
   205  
   206  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   207  func (in *IngressBackend) DeepCopyInto(out *IngressBackend) {
   208  	*out = *in
   209  	if in.Service != nil {
   210  		in, out := &in.Service, &out.Service
   211  		*out = new(IngressServiceBackend)
   212  		**out = **in
   213  	}
   214  	if in.Resource != nil {
   215  		in, out := &in.Resource, &out.Resource
   216  		*out = new(core.TypedLocalObjectReference)
   217  		(*in).DeepCopyInto(*out)
   218  	}
   219  	return
   220  }
   221  
   222  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressBackend.
   223  func (in *IngressBackend) DeepCopy() *IngressBackend {
   224  	if in == nil {
   225  		return nil
   226  	}
   227  	out := new(IngressBackend)
   228  	in.DeepCopyInto(out)
   229  	return out
   230  }
   231  
   232  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   233  func (in *IngressClass) DeepCopyInto(out *IngressClass) {
   234  	*out = *in
   235  	out.TypeMeta = in.TypeMeta
   236  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
   237  	in.Spec.DeepCopyInto(&out.Spec)
   238  	return
   239  }
   240  
   241  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressClass.
   242  func (in *IngressClass) DeepCopy() *IngressClass {
   243  	if in == nil {
   244  		return nil
   245  	}
   246  	out := new(IngressClass)
   247  	in.DeepCopyInto(out)
   248  	return out
   249  }
   250  
   251  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   252  func (in *IngressClass) DeepCopyObject() runtime.Object {
   253  	if c := in.DeepCopy(); c != nil {
   254  		return c
   255  	}
   256  	return nil
   257  }
   258  
   259  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   260  func (in *IngressClassList) DeepCopyInto(out *IngressClassList) {
   261  	*out = *in
   262  	out.TypeMeta = in.TypeMeta
   263  	in.ListMeta.DeepCopyInto(&out.ListMeta)
   264  	if in.Items != nil {
   265  		in, out := &in.Items, &out.Items
   266  		*out = make([]IngressClass, len(*in))
   267  		for i := range *in {
   268  			(*in)[i].DeepCopyInto(&(*out)[i])
   269  		}
   270  	}
   271  	return
   272  }
   273  
   274  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressClassList.
   275  func (in *IngressClassList) DeepCopy() *IngressClassList {
   276  	if in == nil {
   277  		return nil
   278  	}
   279  	out := new(IngressClassList)
   280  	in.DeepCopyInto(out)
   281  	return out
   282  }
   283  
   284  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   285  func (in *IngressClassList) DeepCopyObject() runtime.Object {
   286  	if c := in.DeepCopy(); c != nil {
   287  		return c
   288  	}
   289  	return nil
   290  }
   291  
   292  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   293  func (in *IngressClassParametersReference) DeepCopyInto(out *IngressClassParametersReference) {
   294  	*out = *in
   295  	if in.APIGroup != nil {
   296  		in, out := &in.APIGroup, &out.APIGroup
   297  		*out = new(string)
   298  		**out = **in
   299  	}
   300  	if in.Scope != nil {
   301  		in, out := &in.Scope, &out.Scope
   302  		*out = new(string)
   303  		**out = **in
   304  	}
   305  	if in.Namespace != nil {
   306  		in, out := &in.Namespace, &out.Namespace
   307  		*out = new(string)
   308  		**out = **in
   309  	}
   310  	return
   311  }
   312  
   313  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressClassParametersReference.
   314  func (in *IngressClassParametersReference) DeepCopy() *IngressClassParametersReference {
   315  	if in == nil {
   316  		return nil
   317  	}
   318  	out := new(IngressClassParametersReference)
   319  	in.DeepCopyInto(out)
   320  	return out
   321  }
   322  
   323  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   324  func (in *IngressClassSpec) DeepCopyInto(out *IngressClassSpec) {
   325  	*out = *in
   326  	if in.Parameters != nil {
   327  		in, out := &in.Parameters, &out.Parameters
   328  		*out = new(IngressClassParametersReference)
   329  		(*in).DeepCopyInto(*out)
   330  	}
   331  	return
   332  }
   333  
   334  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressClassSpec.
   335  func (in *IngressClassSpec) DeepCopy() *IngressClassSpec {
   336  	if in == nil {
   337  		return nil
   338  	}
   339  	out := new(IngressClassSpec)
   340  	in.DeepCopyInto(out)
   341  	return out
   342  }
   343  
   344  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   345  func (in *IngressList) DeepCopyInto(out *IngressList) {
   346  	*out = *in
   347  	out.TypeMeta = in.TypeMeta
   348  	in.ListMeta.DeepCopyInto(&out.ListMeta)
   349  	if in.Items != nil {
   350  		in, out := &in.Items, &out.Items
   351  		*out = make([]Ingress, len(*in))
   352  		for i := range *in {
   353  			(*in)[i].DeepCopyInto(&(*out)[i])
   354  		}
   355  	}
   356  	return
   357  }
   358  
   359  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressList.
   360  func (in *IngressList) DeepCopy() *IngressList {
   361  	if in == nil {
   362  		return nil
   363  	}
   364  	out := new(IngressList)
   365  	in.DeepCopyInto(out)
   366  	return out
   367  }
   368  
   369  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   370  func (in *IngressList) DeepCopyObject() runtime.Object {
   371  	if c := in.DeepCopy(); c != nil {
   372  		return c
   373  	}
   374  	return nil
   375  }
   376  
   377  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   378  func (in *IngressLoadBalancerIngress) DeepCopyInto(out *IngressLoadBalancerIngress) {
   379  	*out = *in
   380  	if in.Ports != nil {
   381  		in, out := &in.Ports, &out.Ports
   382  		*out = make([]IngressPortStatus, len(*in))
   383  		for i := range *in {
   384  			(*in)[i].DeepCopyInto(&(*out)[i])
   385  		}
   386  	}
   387  	return
   388  }
   389  
   390  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressLoadBalancerIngress.
   391  func (in *IngressLoadBalancerIngress) DeepCopy() *IngressLoadBalancerIngress {
   392  	if in == nil {
   393  		return nil
   394  	}
   395  	out := new(IngressLoadBalancerIngress)
   396  	in.DeepCopyInto(out)
   397  	return out
   398  }
   399  
   400  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   401  func (in *IngressLoadBalancerStatus) DeepCopyInto(out *IngressLoadBalancerStatus) {
   402  	*out = *in
   403  	if in.Ingress != nil {
   404  		in, out := &in.Ingress, &out.Ingress
   405  		*out = make([]IngressLoadBalancerIngress, len(*in))
   406  		for i := range *in {
   407  			(*in)[i].DeepCopyInto(&(*out)[i])
   408  		}
   409  	}
   410  	return
   411  }
   412  
   413  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressLoadBalancerStatus.
   414  func (in *IngressLoadBalancerStatus) DeepCopy() *IngressLoadBalancerStatus {
   415  	if in == nil {
   416  		return nil
   417  	}
   418  	out := new(IngressLoadBalancerStatus)
   419  	in.DeepCopyInto(out)
   420  	return out
   421  }
   422  
   423  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   424  func (in *IngressPortStatus) DeepCopyInto(out *IngressPortStatus) {
   425  	*out = *in
   426  	if in.Error != nil {
   427  		in, out := &in.Error, &out.Error
   428  		*out = new(string)
   429  		**out = **in
   430  	}
   431  	return
   432  }
   433  
   434  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressPortStatus.
   435  func (in *IngressPortStatus) DeepCopy() *IngressPortStatus {
   436  	if in == nil {
   437  		return nil
   438  	}
   439  	out := new(IngressPortStatus)
   440  	in.DeepCopyInto(out)
   441  	return out
   442  }
   443  
   444  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   445  func (in *IngressRule) DeepCopyInto(out *IngressRule) {
   446  	*out = *in
   447  	in.IngressRuleValue.DeepCopyInto(&out.IngressRuleValue)
   448  	return
   449  }
   450  
   451  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressRule.
   452  func (in *IngressRule) DeepCopy() *IngressRule {
   453  	if in == nil {
   454  		return nil
   455  	}
   456  	out := new(IngressRule)
   457  	in.DeepCopyInto(out)
   458  	return out
   459  }
   460  
   461  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   462  func (in *IngressRuleValue) DeepCopyInto(out *IngressRuleValue) {
   463  	*out = *in
   464  	if in.HTTP != nil {
   465  		in, out := &in.HTTP, &out.HTTP
   466  		*out = new(HTTPIngressRuleValue)
   467  		(*in).DeepCopyInto(*out)
   468  	}
   469  	return
   470  }
   471  
   472  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressRuleValue.
   473  func (in *IngressRuleValue) DeepCopy() *IngressRuleValue {
   474  	if in == nil {
   475  		return nil
   476  	}
   477  	out := new(IngressRuleValue)
   478  	in.DeepCopyInto(out)
   479  	return out
   480  }
   481  
   482  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   483  func (in *IngressServiceBackend) DeepCopyInto(out *IngressServiceBackend) {
   484  	*out = *in
   485  	out.Port = in.Port
   486  	return
   487  }
   488  
   489  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressServiceBackend.
   490  func (in *IngressServiceBackend) DeepCopy() *IngressServiceBackend {
   491  	if in == nil {
   492  		return nil
   493  	}
   494  	out := new(IngressServiceBackend)
   495  	in.DeepCopyInto(out)
   496  	return out
   497  }
   498  
   499  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   500  func (in *IngressSpec) DeepCopyInto(out *IngressSpec) {
   501  	*out = *in
   502  	if in.IngressClassName != nil {
   503  		in, out := &in.IngressClassName, &out.IngressClassName
   504  		*out = new(string)
   505  		**out = **in
   506  	}
   507  	if in.DefaultBackend != nil {
   508  		in, out := &in.DefaultBackend, &out.DefaultBackend
   509  		*out = new(IngressBackend)
   510  		(*in).DeepCopyInto(*out)
   511  	}
   512  	if in.TLS != nil {
   513  		in, out := &in.TLS, &out.TLS
   514  		*out = make([]IngressTLS, len(*in))
   515  		for i := range *in {
   516  			(*in)[i].DeepCopyInto(&(*out)[i])
   517  		}
   518  	}
   519  	if in.Rules != nil {
   520  		in, out := &in.Rules, &out.Rules
   521  		*out = make([]IngressRule, len(*in))
   522  		for i := range *in {
   523  			(*in)[i].DeepCopyInto(&(*out)[i])
   524  		}
   525  	}
   526  	return
   527  }
   528  
   529  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressSpec.
   530  func (in *IngressSpec) DeepCopy() *IngressSpec {
   531  	if in == nil {
   532  		return nil
   533  	}
   534  	out := new(IngressSpec)
   535  	in.DeepCopyInto(out)
   536  	return out
   537  }
   538  
   539  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   540  func (in *IngressStatus) DeepCopyInto(out *IngressStatus) {
   541  	*out = *in
   542  	in.LoadBalancer.DeepCopyInto(&out.LoadBalancer)
   543  	return
   544  }
   545  
   546  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressStatus.
   547  func (in *IngressStatus) DeepCopy() *IngressStatus {
   548  	if in == nil {
   549  		return nil
   550  	}
   551  	out := new(IngressStatus)
   552  	in.DeepCopyInto(out)
   553  	return out
   554  }
   555  
   556  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   557  func (in *IngressTLS) DeepCopyInto(out *IngressTLS) {
   558  	*out = *in
   559  	if in.Hosts != nil {
   560  		in, out := &in.Hosts, &out.Hosts
   561  		*out = make([]string, len(*in))
   562  		copy(*out, *in)
   563  	}
   564  	return
   565  }
   566  
   567  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressTLS.
   568  func (in *IngressTLS) DeepCopy() *IngressTLS {
   569  	if in == nil {
   570  		return nil
   571  	}
   572  	out := new(IngressTLS)
   573  	in.DeepCopyInto(out)
   574  	return out
   575  }
   576  
   577  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   578  func (in *NetworkPolicy) DeepCopyInto(out *NetworkPolicy) {
   579  	*out = *in
   580  	out.TypeMeta = in.TypeMeta
   581  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
   582  	in.Spec.DeepCopyInto(&out.Spec)
   583  	return
   584  }
   585  
   586  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicy.
   587  func (in *NetworkPolicy) DeepCopy() *NetworkPolicy {
   588  	if in == nil {
   589  		return nil
   590  	}
   591  	out := new(NetworkPolicy)
   592  	in.DeepCopyInto(out)
   593  	return out
   594  }
   595  
   596  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   597  func (in *NetworkPolicy) DeepCopyObject() runtime.Object {
   598  	if c := in.DeepCopy(); c != nil {
   599  		return c
   600  	}
   601  	return nil
   602  }
   603  
   604  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   605  func (in *NetworkPolicyEgressRule) DeepCopyInto(out *NetworkPolicyEgressRule) {
   606  	*out = *in
   607  	if in.Ports != nil {
   608  		in, out := &in.Ports, &out.Ports
   609  		*out = make([]NetworkPolicyPort, len(*in))
   610  		for i := range *in {
   611  			(*in)[i].DeepCopyInto(&(*out)[i])
   612  		}
   613  	}
   614  	if in.To != nil {
   615  		in, out := &in.To, &out.To
   616  		*out = make([]NetworkPolicyPeer, len(*in))
   617  		for i := range *in {
   618  			(*in)[i].DeepCopyInto(&(*out)[i])
   619  		}
   620  	}
   621  	return
   622  }
   623  
   624  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyEgressRule.
   625  func (in *NetworkPolicyEgressRule) DeepCopy() *NetworkPolicyEgressRule {
   626  	if in == nil {
   627  		return nil
   628  	}
   629  	out := new(NetworkPolicyEgressRule)
   630  	in.DeepCopyInto(out)
   631  	return out
   632  }
   633  
   634  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   635  func (in *NetworkPolicyIngressRule) DeepCopyInto(out *NetworkPolicyIngressRule) {
   636  	*out = *in
   637  	if in.Ports != nil {
   638  		in, out := &in.Ports, &out.Ports
   639  		*out = make([]NetworkPolicyPort, len(*in))
   640  		for i := range *in {
   641  			(*in)[i].DeepCopyInto(&(*out)[i])
   642  		}
   643  	}
   644  	if in.From != nil {
   645  		in, out := &in.From, &out.From
   646  		*out = make([]NetworkPolicyPeer, len(*in))
   647  		for i := range *in {
   648  			(*in)[i].DeepCopyInto(&(*out)[i])
   649  		}
   650  	}
   651  	return
   652  }
   653  
   654  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyIngressRule.
   655  func (in *NetworkPolicyIngressRule) DeepCopy() *NetworkPolicyIngressRule {
   656  	if in == nil {
   657  		return nil
   658  	}
   659  	out := new(NetworkPolicyIngressRule)
   660  	in.DeepCopyInto(out)
   661  	return out
   662  }
   663  
   664  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   665  func (in *NetworkPolicyList) DeepCopyInto(out *NetworkPolicyList) {
   666  	*out = *in
   667  	out.TypeMeta = in.TypeMeta
   668  	in.ListMeta.DeepCopyInto(&out.ListMeta)
   669  	if in.Items != nil {
   670  		in, out := &in.Items, &out.Items
   671  		*out = make([]NetworkPolicy, len(*in))
   672  		for i := range *in {
   673  			(*in)[i].DeepCopyInto(&(*out)[i])
   674  		}
   675  	}
   676  	return
   677  }
   678  
   679  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyList.
   680  func (in *NetworkPolicyList) DeepCopy() *NetworkPolicyList {
   681  	if in == nil {
   682  		return nil
   683  	}
   684  	out := new(NetworkPolicyList)
   685  	in.DeepCopyInto(out)
   686  	return out
   687  }
   688  
   689  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   690  func (in *NetworkPolicyList) DeepCopyObject() runtime.Object {
   691  	if c := in.DeepCopy(); c != nil {
   692  		return c
   693  	}
   694  	return nil
   695  }
   696  
   697  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   698  func (in *NetworkPolicyPeer) DeepCopyInto(out *NetworkPolicyPeer) {
   699  	*out = *in
   700  	if in.PodSelector != nil {
   701  		in, out := &in.PodSelector, &out.PodSelector
   702  		*out = new(v1.LabelSelector)
   703  		(*in).DeepCopyInto(*out)
   704  	}
   705  	if in.NamespaceSelector != nil {
   706  		in, out := &in.NamespaceSelector, &out.NamespaceSelector
   707  		*out = new(v1.LabelSelector)
   708  		(*in).DeepCopyInto(*out)
   709  	}
   710  	if in.IPBlock != nil {
   711  		in, out := &in.IPBlock, &out.IPBlock
   712  		*out = new(IPBlock)
   713  		(*in).DeepCopyInto(*out)
   714  	}
   715  	return
   716  }
   717  
   718  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyPeer.
   719  func (in *NetworkPolicyPeer) DeepCopy() *NetworkPolicyPeer {
   720  	if in == nil {
   721  		return nil
   722  	}
   723  	out := new(NetworkPolicyPeer)
   724  	in.DeepCopyInto(out)
   725  	return out
   726  }
   727  
   728  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   729  func (in *NetworkPolicyPort) DeepCopyInto(out *NetworkPolicyPort) {
   730  	*out = *in
   731  	if in.Protocol != nil {
   732  		in, out := &in.Protocol, &out.Protocol
   733  		*out = new(core.Protocol)
   734  		**out = **in
   735  	}
   736  	if in.Port != nil {
   737  		in, out := &in.Port, &out.Port
   738  		*out = new(intstr.IntOrString)
   739  		**out = **in
   740  	}
   741  	if in.EndPort != nil {
   742  		in, out := &in.EndPort, &out.EndPort
   743  		*out = new(int32)
   744  		**out = **in
   745  	}
   746  	return
   747  }
   748  
   749  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyPort.
   750  func (in *NetworkPolicyPort) DeepCopy() *NetworkPolicyPort {
   751  	if in == nil {
   752  		return nil
   753  	}
   754  	out := new(NetworkPolicyPort)
   755  	in.DeepCopyInto(out)
   756  	return out
   757  }
   758  
   759  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   760  func (in *NetworkPolicySpec) DeepCopyInto(out *NetworkPolicySpec) {
   761  	*out = *in
   762  	in.PodSelector.DeepCopyInto(&out.PodSelector)
   763  	if in.Ingress != nil {
   764  		in, out := &in.Ingress, &out.Ingress
   765  		*out = make([]NetworkPolicyIngressRule, len(*in))
   766  		for i := range *in {
   767  			(*in)[i].DeepCopyInto(&(*out)[i])
   768  		}
   769  	}
   770  	if in.Egress != nil {
   771  		in, out := &in.Egress, &out.Egress
   772  		*out = make([]NetworkPolicyEgressRule, len(*in))
   773  		for i := range *in {
   774  			(*in)[i].DeepCopyInto(&(*out)[i])
   775  		}
   776  	}
   777  	if in.PolicyTypes != nil {
   778  		in, out := &in.PolicyTypes, &out.PolicyTypes
   779  		*out = make([]PolicyType, len(*in))
   780  		copy(*out, *in)
   781  	}
   782  	return
   783  }
   784  
   785  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicySpec.
   786  func (in *NetworkPolicySpec) DeepCopy() *NetworkPolicySpec {
   787  	if in == nil {
   788  		return nil
   789  	}
   790  	out := new(NetworkPolicySpec)
   791  	in.DeepCopyInto(out)
   792  	return out
   793  }
   794  
   795  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   796  func (in *ParentReference) DeepCopyInto(out *ParentReference) {
   797  	*out = *in
   798  	return
   799  }
   800  
   801  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParentReference.
   802  func (in *ParentReference) DeepCopy() *ParentReference {
   803  	if in == nil {
   804  		return nil
   805  	}
   806  	out := new(ParentReference)
   807  	in.DeepCopyInto(out)
   808  	return out
   809  }
   810  
   811  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   812  func (in *ServiceBackendPort) DeepCopyInto(out *ServiceBackendPort) {
   813  	*out = *in
   814  	return
   815  }
   816  
   817  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceBackendPort.
   818  func (in *ServiceBackendPort) DeepCopy() *ServiceBackendPort {
   819  	if in == nil {
   820  		return nil
   821  	}
   822  	out := new(ServiceBackendPort)
   823  	in.DeepCopyInto(out)
   824  	return out
   825  }
   826  
   827  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   828  func (in *ServiceCIDR) DeepCopyInto(out *ServiceCIDR) {
   829  	*out = *in
   830  	out.TypeMeta = in.TypeMeta
   831  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
   832  	in.Spec.DeepCopyInto(&out.Spec)
   833  	in.Status.DeepCopyInto(&out.Status)
   834  	return
   835  }
   836  
   837  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceCIDR.
   838  func (in *ServiceCIDR) DeepCopy() *ServiceCIDR {
   839  	if in == nil {
   840  		return nil
   841  	}
   842  	out := new(ServiceCIDR)
   843  	in.DeepCopyInto(out)
   844  	return out
   845  }
   846  
   847  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   848  func (in *ServiceCIDR) DeepCopyObject() runtime.Object {
   849  	if c := in.DeepCopy(); c != nil {
   850  		return c
   851  	}
   852  	return nil
   853  }
   854  
   855  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   856  func (in *ServiceCIDRList) DeepCopyInto(out *ServiceCIDRList) {
   857  	*out = *in
   858  	out.TypeMeta = in.TypeMeta
   859  	in.ListMeta.DeepCopyInto(&out.ListMeta)
   860  	if in.Items != nil {
   861  		in, out := &in.Items, &out.Items
   862  		*out = make([]ServiceCIDR, len(*in))
   863  		for i := range *in {
   864  			(*in)[i].DeepCopyInto(&(*out)[i])
   865  		}
   866  	}
   867  	return
   868  }
   869  
   870  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceCIDRList.
   871  func (in *ServiceCIDRList) DeepCopy() *ServiceCIDRList {
   872  	if in == nil {
   873  		return nil
   874  	}
   875  	out := new(ServiceCIDRList)
   876  	in.DeepCopyInto(out)
   877  	return out
   878  }
   879  
   880  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   881  func (in *ServiceCIDRList) DeepCopyObject() runtime.Object {
   882  	if c := in.DeepCopy(); c != nil {
   883  		return c
   884  	}
   885  	return nil
   886  }
   887  
   888  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   889  func (in *ServiceCIDRSpec) DeepCopyInto(out *ServiceCIDRSpec) {
   890  	*out = *in
   891  	if in.CIDRs != nil {
   892  		in, out := &in.CIDRs, &out.CIDRs
   893  		*out = make([]string, len(*in))
   894  		copy(*out, *in)
   895  	}
   896  	return
   897  }
   898  
   899  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceCIDRSpec.
   900  func (in *ServiceCIDRSpec) DeepCopy() *ServiceCIDRSpec {
   901  	if in == nil {
   902  		return nil
   903  	}
   904  	out := new(ServiceCIDRSpec)
   905  	in.DeepCopyInto(out)
   906  	return out
   907  }
   908  
   909  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   910  func (in *ServiceCIDRStatus) DeepCopyInto(out *ServiceCIDRStatus) {
   911  	*out = *in
   912  	if in.Conditions != nil {
   913  		in, out := &in.Conditions, &out.Conditions
   914  		*out = make([]v1.Condition, len(*in))
   915  		for i := range *in {
   916  			(*in)[i].DeepCopyInto(&(*out)[i])
   917  		}
   918  	}
   919  	return
   920  }
   921  
   922  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceCIDRStatus.
   923  func (in *ServiceCIDRStatus) DeepCopy() *ServiceCIDRStatus {
   924  	if in == nil {
   925  		return nil
   926  	}
   927  	out := new(ServiceCIDRStatus)
   928  	in.DeepCopyInto(out)
   929  	return out
   930  }
   931  

View as plain text