...

Source file src/k8s.io/api/networking/v1/zz_generated.deepcopy.go

Documentation: k8s.io/api/networking/v1

     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 v1
    23  
    24  import (
    25  	corev1 "k8s.io/api/core/v1"
    26  	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    27  	runtime "k8s.io/apimachinery/pkg/runtime"
    28  	intstr "k8s.io/apimachinery/pkg/util/intstr"
    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 *IPBlock) DeepCopyInto(out *IPBlock) {
    78  	*out = *in
    79  	if in.Except != nil {
    80  		in, out := &in.Except, &out.Except
    81  		*out = make([]string, len(*in))
    82  		copy(*out, *in)
    83  	}
    84  	return
    85  }
    86  
    87  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPBlock.
    88  func (in *IPBlock) DeepCopy() *IPBlock {
    89  	if in == nil {
    90  		return nil
    91  	}
    92  	out := new(IPBlock)
    93  	in.DeepCopyInto(out)
    94  	return out
    95  }
    96  
    97  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    98  func (in *Ingress) DeepCopyInto(out *Ingress) {
    99  	*out = *in
   100  	out.TypeMeta = in.TypeMeta
   101  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
   102  	in.Spec.DeepCopyInto(&out.Spec)
   103  	in.Status.DeepCopyInto(&out.Status)
   104  	return
   105  }
   106  
   107  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ingress.
   108  func (in *Ingress) DeepCopy() *Ingress {
   109  	if in == nil {
   110  		return nil
   111  	}
   112  	out := new(Ingress)
   113  	in.DeepCopyInto(out)
   114  	return out
   115  }
   116  
   117  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   118  func (in *Ingress) DeepCopyObject() runtime.Object {
   119  	if c := in.DeepCopy(); c != nil {
   120  		return c
   121  	}
   122  	return nil
   123  }
   124  
   125  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   126  func (in *IngressBackend) DeepCopyInto(out *IngressBackend) {
   127  	*out = *in
   128  	if in.Service != nil {
   129  		in, out := &in.Service, &out.Service
   130  		*out = new(IngressServiceBackend)
   131  		**out = **in
   132  	}
   133  	if in.Resource != nil {
   134  		in, out := &in.Resource, &out.Resource
   135  		*out = new(corev1.TypedLocalObjectReference)
   136  		(*in).DeepCopyInto(*out)
   137  	}
   138  	return
   139  }
   140  
   141  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressBackend.
   142  func (in *IngressBackend) DeepCopy() *IngressBackend {
   143  	if in == nil {
   144  		return nil
   145  	}
   146  	out := new(IngressBackend)
   147  	in.DeepCopyInto(out)
   148  	return out
   149  }
   150  
   151  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   152  func (in *IngressClass) DeepCopyInto(out *IngressClass) {
   153  	*out = *in
   154  	out.TypeMeta = in.TypeMeta
   155  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
   156  	in.Spec.DeepCopyInto(&out.Spec)
   157  	return
   158  }
   159  
   160  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressClass.
   161  func (in *IngressClass) DeepCopy() *IngressClass {
   162  	if in == nil {
   163  		return nil
   164  	}
   165  	out := new(IngressClass)
   166  	in.DeepCopyInto(out)
   167  	return out
   168  }
   169  
   170  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   171  func (in *IngressClass) DeepCopyObject() runtime.Object {
   172  	if c := in.DeepCopy(); c != nil {
   173  		return c
   174  	}
   175  	return nil
   176  }
   177  
   178  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   179  func (in *IngressClassList) DeepCopyInto(out *IngressClassList) {
   180  	*out = *in
   181  	out.TypeMeta = in.TypeMeta
   182  	in.ListMeta.DeepCopyInto(&out.ListMeta)
   183  	if in.Items != nil {
   184  		in, out := &in.Items, &out.Items
   185  		*out = make([]IngressClass, len(*in))
   186  		for i := range *in {
   187  			(*in)[i].DeepCopyInto(&(*out)[i])
   188  		}
   189  	}
   190  	return
   191  }
   192  
   193  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressClassList.
   194  func (in *IngressClassList) DeepCopy() *IngressClassList {
   195  	if in == nil {
   196  		return nil
   197  	}
   198  	out := new(IngressClassList)
   199  	in.DeepCopyInto(out)
   200  	return out
   201  }
   202  
   203  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   204  func (in *IngressClassList) DeepCopyObject() runtime.Object {
   205  	if c := in.DeepCopy(); c != nil {
   206  		return c
   207  	}
   208  	return nil
   209  }
   210  
   211  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   212  func (in *IngressClassParametersReference) DeepCopyInto(out *IngressClassParametersReference) {
   213  	*out = *in
   214  	if in.APIGroup != nil {
   215  		in, out := &in.APIGroup, &out.APIGroup
   216  		*out = new(string)
   217  		**out = **in
   218  	}
   219  	if in.Scope != nil {
   220  		in, out := &in.Scope, &out.Scope
   221  		*out = new(string)
   222  		**out = **in
   223  	}
   224  	if in.Namespace != nil {
   225  		in, out := &in.Namespace, &out.Namespace
   226  		*out = new(string)
   227  		**out = **in
   228  	}
   229  	return
   230  }
   231  
   232  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressClassParametersReference.
   233  func (in *IngressClassParametersReference) DeepCopy() *IngressClassParametersReference {
   234  	if in == nil {
   235  		return nil
   236  	}
   237  	out := new(IngressClassParametersReference)
   238  	in.DeepCopyInto(out)
   239  	return out
   240  }
   241  
   242  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   243  func (in *IngressClassSpec) DeepCopyInto(out *IngressClassSpec) {
   244  	*out = *in
   245  	if in.Parameters != nil {
   246  		in, out := &in.Parameters, &out.Parameters
   247  		*out = new(IngressClassParametersReference)
   248  		(*in).DeepCopyInto(*out)
   249  	}
   250  	return
   251  }
   252  
   253  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressClassSpec.
   254  func (in *IngressClassSpec) DeepCopy() *IngressClassSpec {
   255  	if in == nil {
   256  		return nil
   257  	}
   258  	out := new(IngressClassSpec)
   259  	in.DeepCopyInto(out)
   260  	return out
   261  }
   262  
   263  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   264  func (in *IngressList) DeepCopyInto(out *IngressList) {
   265  	*out = *in
   266  	out.TypeMeta = in.TypeMeta
   267  	in.ListMeta.DeepCopyInto(&out.ListMeta)
   268  	if in.Items != nil {
   269  		in, out := &in.Items, &out.Items
   270  		*out = make([]Ingress, len(*in))
   271  		for i := range *in {
   272  			(*in)[i].DeepCopyInto(&(*out)[i])
   273  		}
   274  	}
   275  	return
   276  }
   277  
   278  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressList.
   279  func (in *IngressList) DeepCopy() *IngressList {
   280  	if in == nil {
   281  		return nil
   282  	}
   283  	out := new(IngressList)
   284  	in.DeepCopyInto(out)
   285  	return out
   286  }
   287  
   288  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   289  func (in *IngressList) DeepCopyObject() runtime.Object {
   290  	if c := in.DeepCopy(); c != nil {
   291  		return c
   292  	}
   293  	return nil
   294  }
   295  
   296  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   297  func (in *IngressLoadBalancerIngress) DeepCopyInto(out *IngressLoadBalancerIngress) {
   298  	*out = *in
   299  	if in.Ports != nil {
   300  		in, out := &in.Ports, &out.Ports
   301  		*out = make([]IngressPortStatus, len(*in))
   302  		for i := range *in {
   303  			(*in)[i].DeepCopyInto(&(*out)[i])
   304  		}
   305  	}
   306  	return
   307  }
   308  
   309  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressLoadBalancerIngress.
   310  func (in *IngressLoadBalancerIngress) DeepCopy() *IngressLoadBalancerIngress {
   311  	if in == nil {
   312  		return nil
   313  	}
   314  	out := new(IngressLoadBalancerIngress)
   315  	in.DeepCopyInto(out)
   316  	return out
   317  }
   318  
   319  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   320  func (in *IngressLoadBalancerStatus) DeepCopyInto(out *IngressLoadBalancerStatus) {
   321  	*out = *in
   322  	if in.Ingress != nil {
   323  		in, out := &in.Ingress, &out.Ingress
   324  		*out = make([]IngressLoadBalancerIngress, len(*in))
   325  		for i := range *in {
   326  			(*in)[i].DeepCopyInto(&(*out)[i])
   327  		}
   328  	}
   329  	return
   330  }
   331  
   332  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressLoadBalancerStatus.
   333  func (in *IngressLoadBalancerStatus) DeepCopy() *IngressLoadBalancerStatus {
   334  	if in == nil {
   335  		return nil
   336  	}
   337  	out := new(IngressLoadBalancerStatus)
   338  	in.DeepCopyInto(out)
   339  	return out
   340  }
   341  
   342  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   343  func (in *IngressPortStatus) DeepCopyInto(out *IngressPortStatus) {
   344  	*out = *in
   345  	if in.Error != nil {
   346  		in, out := &in.Error, &out.Error
   347  		*out = new(string)
   348  		**out = **in
   349  	}
   350  	return
   351  }
   352  
   353  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressPortStatus.
   354  func (in *IngressPortStatus) DeepCopy() *IngressPortStatus {
   355  	if in == nil {
   356  		return nil
   357  	}
   358  	out := new(IngressPortStatus)
   359  	in.DeepCopyInto(out)
   360  	return out
   361  }
   362  
   363  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   364  func (in *IngressRule) DeepCopyInto(out *IngressRule) {
   365  	*out = *in
   366  	in.IngressRuleValue.DeepCopyInto(&out.IngressRuleValue)
   367  	return
   368  }
   369  
   370  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressRule.
   371  func (in *IngressRule) DeepCopy() *IngressRule {
   372  	if in == nil {
   373  		return nil
   374  	}
   375  	out := new(IngressRule)
   376  	in.DeepCopyInto(out)
   377  	return out
   378  }
   379  
   380  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   381  func (in *IngressRuleValue) DeepCopyInto(out *IngressRuleValue) {
   382  	*out = *in
   383  	if in.HTTP != nil {
   384  		in, out := &in.HTTP, &out.HTTP
   385  		*out = new(HTTPIngressRuleValue)
   386  		(*in).DeepCopyInto(*out)
   387  	}
   388  	return
   389  }
   390  
   391  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressRuleValue.
   392  func (in *IngressRuleValue) DeepCopy() *IngressRuleValue {
   393  	if in == nil {
   394  		return nil
   395  	}
   396  	out := new(IngressRuleValue)
   397  	in.DeepCopyInto(out)
   398  	return out
   399  }
   400  
   401  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   402  func (in *IngressServiceBackend) DeepCopyInto(out *IngressServiceBackend) {
   403  	*out = *in
   404  	out.Port = in.Port
   405  	return
   406  }
   407  
   408  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressServiceBackend.
   409  func (in *IngressServiceBackend) DeepCopy() *IngressServiceBackend {
   410  	if in == nil {
   411  		return nil
   412  	}
   413  	out := new(IngressServiceBackend)
   414  	in.DeepCopyInto(out)
   415  	return out
   416  }
   417  
   418  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   419  func (in *IngressSpec) DeepCopyInto(out *IngressSpec) {
   420  	*out = *in
   421  	if in.IngressClassName != nil {
   422  		in, out := &in.IngressClassName, &out.IngressClassName
   423  		*out = new(string)
   424  		**out = **in
   425  	}
   426  	if in.DefaultBackend != nil {
   427  		in, out := &in.DefaultBackend, &out.DefaultBackend
   428  		*out = new(IngressBackend)
   429  		(*in).DeepCopyInto(*out)
   430  	}
   431  	if in.TLS != nil {
   432  		in, out := &in.TLS, &out.TLS
   433  		*out = make([]IngressTLS, len(*in))
   434  		for i := range *in {
   435  			(*in)[i].DeepCopyInto(&(*out)[i])
   436  		}
   437  	}
   438  	if in.Rules != nil {
   439  		in, out := &in.Rules, &out.Rules
   440  		*out = make([]IngressRule, len(*in))
   441  		for i := range *in {
   442  			(*in)[i].DeepCopyInto(&(*out)[i])
   443  		}
   444  	}
   445  	return
   446  }
   447  
   448  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressSpec.
   449  func (in *IngressSpec) DeepCopy() *IngressSpec {
   450  	if in == nil {
   451  		return nil
   452  	}
   453  	out := new(IngressSpec)
   454  	in.DeepCopyInto(out)
   455  	return out
   456  }
   457  
   458  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   459  func (in *IngressStatus) DeepCopyInto(out *IngressStatus) {
   460  	*out = *in
   461  	in.LoadBalancer.DeepCopyInto(&out.LoadBalancer)
   462  	return
   463  }
   464  
   465  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressStatus.
   466  func (in *IngressStatus) DeepCopy() *IngressStatus {
   467  	if in == nil {
   468  		return nil
   469  	}
   470  	out := new(IngressStatus)
   471  	in.DeepCopyInto(out)
   472  	return out
   473  }
   474  
   475  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   476  func (in *IngressTLS) DeepCopyInto(out *IngressTLS) {
   477  	*out = *in
   478  	if in.Hosts != nil {
   479  		in, out := &in.Hosts, &out.Hosts
   480  		*out = make([]string, len(*in))
   481  		copy(*out, *in)
   482  	}
   483  	return
   484  }
   485  
   486  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressTLS.
   487  func (in *IngressTLS) DeepCopy() *IngressTLS {
   488  	if in == nil {
   489  		return nil
   490  	}
   491  	out := new(IngressTLS)
   492  	in.DeepCopyInto(out)
   493  	return out
   494  }
   495  
   496  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   497  func (in *NetworkPolicy) DeepCopyInto(out *NetworkPolicy) {
   498  	*out = *in
   499  	out.TypeMeta = in.TypeMeta
   500  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
   501  	in.Spec.DeepCopyInto(&out.Spec)
   502  	return
   503  }
   504  
   505  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicy.
   506  func (in *NetworkPolicy) DeepCopy() *NetworkPolicy {
   507  	if in == nil {
   508  		return nil
   509  	}
   510  	out := new(NetworkPolicy)
   511  	in.DeepCopyInto(out)
   512  	return out
   513  }
   514  
   515  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   516  func (in *NetworkPolicy) DeepCopyObject() runtime.Object {
   517  	if c := in.DeepCopy(); c != nil {
   518  		return c
   519  	}
   520  	return nil
   521  }
   522  
   523  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   524  func (in *NetworkPolicyEgressRule) DeepCopyInto(out *NetworkPolicyEgressRule) {
   525  	*out = *in
   526  	if in.Ports != nil {
   527  		in, out := &in.Ports, &out.Ports
   528  		*out = make([]NetworkPolicyPort, len(*in))
   529  		for i := range *in {
   530  			(*in)[i].DeepCopyInto(&(*out)[i])
   531  		}
   532  	}
   533  	if in.To != nil {
   534  		in, out := &in.To, &out.To
   535  		*out = make([]NetworkPolicyPeer, len(*in))
   536  		for i := range *in {
   537  			(*in)[i].DeepCopyInto(&(*out)[i])
   538  		}
   539  	}
   540  	return
   541  }
   542  
   543  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyEgressRule.
   544  func (in *NetworkPolicyEgressRule) DeepCopy() *NetworkPolicyEgressRule {
   545  	if in == nil {
   546  		return nil
   547  	}
   548  	out := new(NetworkPolicyEgressRule)
   549  	in.DeepCopyInto(out)
   550  	return out
   551  }
   552  
   553  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   554  func (in *NetworkPolicyIngressRule) DeepCopyInto(out *NetworkPolicyIngressRule) {
   555  	*out = *in
   556  	if in.Ports != nil {
   557  		in, out := &in.Ports, &out.Ports
   558  		*out = make([]NetworkPolicyPort, len(*in))
   559  		for i := range *in {
   560  			(*in)[i].DeepCopyInto(&(*out)[i])
   561  		}
   562  	}
   563  	if in.From != nil {
   564  		in, out := &in.From, &out.From
   565  		*out = make([]NetworkPolicyPeer, len(*in))
   566  		for i := range *in {
   567  			(*in)[i].DeepCopyInto(&(*out)[i])
   568  		}
   569  	}
   570  	return
   571  }
   572  
   573  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyIngressRule.
   574  func (in *NetworkPolicyIngressRule) DeepCopy() *NetworkPolicyIngressRule {
   575  	if in == nil {
   576  		return nil
   577  	}
   578  	out := new(NetworkPolicyIngressRule)
   579  	in.DeepCopyInto(out)
   580  	return out
   581  }
   582  
   583  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   584  func (in *NetworkPolicyList) DeepCopyInto(out *NetworkPolicyList) {
   585  	*out = *in
   586  	out.TypeMeta = in.TypeMeta
   587  	in.ListMeta.DeepCopyInto(&out.ListMeta)
   588  	if in.Items != nil {
   589  		in, out := &in.Items, &out.Items
   590  		*out = make([]NetworkPolicy, len(*in))
   591  		for i := range *in {
   592  			(*in)[i].DeepCopyInto(&(*out)[i])
   593  		}
   594  	}
   595  	return
   596  }
   597  
   598  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyList.
   599  func (in *NetworkPolicyList) DeepCopy() *NetworkPolicyList {
   600  	if in == nil {
   601  		return nil
   602  	}
   603  	out := new(NetworkPolicyList)
   604  	in.DeepCopyInto(out)
   605  	return out
   606  }
   607  
   608  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   609  func (in *NetworkPolicyList) DeepCopyObject() runtime.Object {
   610  	if c := in.DeepCopy(); c != nil {
   611  		return c
   612  	}
   613  	return nil
   614  }
   615  
   616  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   617  func (in *NetworkPolicyPeer) DeepCopyInto(out *NetworkPolicyPeer) {
   618  	*out = *in
   619  	if in.PodSelector != nil {
   620  		in, out := &in.PodSelector, &out.PodSelector
   621  		*out = new(metav1.LabelSelector)
   622  		(*in).DeepCopyInto(*out)
   623  	}
   624  	if in.NamespaceSelector != nil {
   625  		in, out := &in.NamespaceSelector, &out.NamespaceSelector
   626  		*out = new(metav1.LabelSelector)
   627  		(*in).DeepCopyInto(*out)
   628  	}
   629  	if in.IPBlock != nil {
   630  		in, out := &in.IPBlock, &out.IPBlock
   631  		*out = new(IPBlock)
   632  		(*in).DeepCopyInto(*out)
   633  	}
   634  	return
   635  }
   636  
   637  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyPeer.
   638  func (in *NetworkPolicyPeer) DeepCopy() *NetworkPolicyPeer {
   639  	if in == nil {
   640  		return nil
   641  	}
   642  	out := new(NetworkPolicyPeer)
   643  	in.DeepCopyInto(out)
   644  	return out
   645  }
   646  
   647  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   648  func (in *NetworkPolicyPort) DeepCopyInto(out *NetworkPolicyPort) {
   649  	*out = *in
   650  	if in.Protocol != nil {
   651  		in, out := &in.Protocol, &out.Protocol
   652  		*out = new(corev1.Protocol)
   653  		**out = **in
   654  	}
   655  	if in.Port != nil {
   656  		in, out := &in.Port, &out.Port
   657  		*out = new(intstr.IntOrString)
   658  		**out = **in
   659  	}
   660  	if in.EndPort != nil {
   661  		in, out := &in.EndPort, &out.EndPort
   662  		*out = new(int32)
   663  		**out = **in
   664  	}
   665  	return
   666  }
   667  
   668  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyPort.
   669  func (in *NetworkPolicyPort) DeepCopy() *NetworkPolicyPort {
   670  	if in == nil {
   671  		return nil
   672  	}
   673  	out := new(NetworkPolicyPort)
   674  	in.DeepCopyInto(out)
   675  	return out
   676  }
   677  
   678  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   679  func (in *NetworkPolicySpec) DeepCopyInto(out *NetworkPolicySpec) {
   680  	*out = *in
   681  	in.PodSelector.DeepCopyInto(&out.PodSelector)
   682  	if in.Ingress != nil {
   683  		in, out := &in.Ingress, &out.Ingress
   684  		*out = make([]NetworkPolicyIngressRule, len(*in))
   685  		for i := range *in {
   686  			(*in)[i].DeepCopyInto(&(*out)[i])
   687  		}
   688  	}
   689  	if in.Egress != nil {
   690  		in, out := &in.Egress, &out.Egress
   691  		*out = make([]NetworkPolicyEgressRule, len(*in))
   692  		for i := range *in {
   693  			(*in)[i].DeepCopyInto(&(*out)[i])
   694  		}
   695  	}
   696  	if in.PolicyTypes != nil {
   697  		in, out := &in.PolicyTypes, &out.PolicyTypes
   698  		*out = make([]PolicyType, len(*in))
   699  		copy(*out, *in)
   700  	}
   701  	return
   702  }
   703  
   704  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicySpec.
   705  func (in *NetworkPolicySpec) DeepCopy() *NetworkPolicySpec {
   706  	if in == nil {
   707  		return nil
   708  	}
   709  	out := new(NetworkPolicySpec)
   710  	in.DeepCopyInto(out)
   711  	return out
   712  }
   713  
   714  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   715  func (in *ServiceBackendPort) DeepCopyInto(out *ServiceBackendPort) {
   716  	*out = *in
   717  	return
   718  }
   719  
   720  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceBackendPort.
   721  func (in *ServiceBackendPort) DeepCopy() *ServiceBackendPort {
   722  	if in == nil {
   723  		return nil
   724  	}
   725  	out := new(ServiceBackendPort)
   726  	in.DeepCopyInto(out)
   727  	return out
   728  }
   729  

View as plain text