github.com/cilium/cilium@v1.16.2/pkg/policy/api/zz_generated.deepcopy.go (about)

     1  //go:build !ignore_autogenerated
     2  // +build !ignore_autogenerated
     3  
     4  // SPDX-License-Identifier: Apache-2.0
     5  // Copyright Authors of Cilium
     6  
     7  // Code generated by deepcopy-gen. DO NOT EDIT.
     8  
     9  package api
    10  
    11  import (
    12  	labels "github.com/cilium/cilium/pkg/k8s/slim/k8s/apis/labels"
    13  	v1 "github.com/cilium/cilium/pkg/k8s/slim/k8s/apis/meta/v1"
    14  	kafka "github.com/cilium/proxy/pkg/policy/api/kafka"
    15  	intstr "k8s.io/apimachinery/pkg/util/intstr"
    16  )
    17  
    18  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    19  func (in *AWSGroup) DeepCopyInto(out *AWSGroup) {
    20  	*out = *in
    21  	if in.Labels != nil {
    22  		in, out := &in.Labels, &out.Labels
    23  		*out = make(map[string]string, len(*in))
    24  		for key, val := range *in {
    25  			(*out)[key] = val
    26  		}
    27  	}
    28  	if in.SecurityGroupsIds != nil {
    29  		in, out := &in.SecurityGroupsIds, &out.SecurityGroupsIds
    30  		*out = make([]string, len(*in))
    31  		copy(*out, *in)
    32  	}
    33  	if in.SecurityGroupsNames != nil {
    34  		in, out := &in.SecurityGroupsNames, &out.SecurityGroupsNames
    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 AWSGroup.
    42  func (in *AWSGroup) DeepCopy() *AWSGroup {
    43  	if in == nil {
    44  		return nil
    45  	}
    46  	out := new(AWSGroup)
    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.
    52  func (in *Authentication) DeepCopyInto(out *Authentication) {
    53  	*out = *in
    54  	return
    55  }
    56  
    57  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Authentication.
    58  func (in *Authentication) DeepCopy() *Authentication {
    59  	if in == nil {
    60  		return nil
    61  	}
    62  	out := new(Authentication)
    63  	in.DeepCopyInto(out)
    64  	return out
    65  }
    66  
    67  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    68  func (in *CIDRRule) DeepCopyInto(out *CIDRRule) {
    69  	*out = *in
    70  	if in.ExceptCIDRs != nil {
    71  		in, out := &in.ExceptCIDRs, &out.ExceptCIDRs
    72  		*out = make([]CIDR, len(*in))
    73  		copy(*out, *in)
    74  	}
    75  	return
    76  }
    77  
    78  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CIDRRule.
    79  func (in *CIDRRule) DeepCopy() *CIDRRule {
    80  	if in == nil {
    81  		return nil
    82  	}
    83  	out := new(CIDRRule)
    84  	in.DeepCopyInto(out)
    85  	return out
    86  }
    87  
    88  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    89  func (in CIDRRuleSlice) DeepCopyInto(out *CIDRRuleSlice) {
    90  	{
    91  		in := &in
    92  		*out = make(CIDRRuleSlice, len(*in))
    93  		for i := range *in {
    94  			(*in)[i].DeepCopyInto(&(*out)[i])
    95  		}
    96  		return
    97  	}
    98  }
    99  
   100  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CIDRRuleSlice.
   101  func (in CIDRRuleSlice) DeepCopy() CIDRRuleSlice {
   102  	if in == nil {
   103  		return nil
   104  	}
   105  	out := new(CIDRRuleSlice)
   106  	in.DeepCopyInto(out)
   107  	return *out
   108  }
   109  
   110  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   111  func (in CIDRSlice) DeepCopyInto(out *CIDRSlice) {
   112  	{
   113  		in := &in
   114  		*out = make(CIDRSlice, len(*in))
   115  		copy(*out, *in)
   116  		return
   117  	}
   118  }
   119  
   120  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CIDRSlice.
   121  func (in CIDRSlice) DeepCopy() CIDRSlice {
   122  	if in == nil {
   123  		return nil
   124  	}
   125  	out := new(CIDRSlice)
   126  	in.DeepCopyInto(out)
   127  	return *out
   128  }
   129  
   130  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   131  func (in *DefaultDenyConfig) DeepCopyInto(out *DefaultDenyConfig) {
   132  	*out = *in
   133  	if in.Ingress != nil {
   134  		in, out := &in.Ingress, &out.Ingress
   135  		*out = new(bool)
   136  		**out = **in
   137  	}
   138  	if in.Egress != nil {
   139  		in, out := &in.Egress, &out.Egress
   140  		*out = new(bool)
   141  		**out = **in
   142  	}
   143  	return
   144  }
   145  
   146  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DefaultDenyConfig.
   147  func (in *DefaultDenyConfig) DeepCopy() *DefaultDenyConfig {
   148  	if in == nil {
   149  		return nil
   150  	}
   151  	out := new(DefaultDenyConfig)
   152  	in.DeepCopyInto(out)
   153  	return out
   154  }
   155  
   156  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   157  func (in *EgressCommonRule) DeepCopyInto(out *EgressCommonRule) {
   158  	*out = *in
   159  	if in.ToEndpoints != nil {
   160  		in, out := &in.ToEndpoints, &out.ToEndpoints
   161  		*out = make([]EndpointSelector, len(*in))
   162  		for i := range *in {
   163  			(*in)[i].DeepCopyInto(&(*out)[i])
   164  		}
   165  	}
   166  	if in.ToRequires != nil {
   167  		in, out := &in.ToRequires, &out.ToRequires
   168  		*out = make([]EndpointSelector, len(*in))
   169  		for i := range *in {
   170  			(*in)[i].DeepCopyInto(&(*out)[i])
   171  		}
   172  	}
   173  	if in.ToCIDR != nil {
   174  		in, out := &in.ToCIDR, &out.ToCIDR
   175  		*out = make(CIDRSlice, len(*in))
   176  		copy(*out, *in)
   177  	}
   178  	if in.ToCIDRSet != nil {
   179  		in, out := &in.ToCIDRSet, &out.ToCIDRSet
   180  		*out = make(CIDRRuleSlice, len(*in))
   181  		for i := range *in {
   182  			(*in)[i].DeepCopyInto(&(*out)[i])
   183  		}
   184  	}
   185  	if in.ToEntities != nil {
   186  		in, out := &in.ToEntities, &out.ToEntities
   187  		*out = make(EntitySlice, len(*in))
   188  		copy(*out, *in)
   189  	}
   190  	if in.ToServices != nil {
   191  		in, out := &in.ToServices, &out.ToServices
   192  		*out = make([]Service, len(*in))
   193  		for i := range *in {
   194  			(*in)[i].DeepCopyInto(&(*out)[i])
   195  		}
   196  	}
   197  	if in.ToGroups != nil {
   198  		in, out := &in.ToGroups, &out.ToGroups
   199  		*out = make([]Groups, len(*in))
   200  		for i := range *in {
   201  			(*in)[i].DeepCopyInto(&(*out)[i])
   202  		}
   203  	}
   204  	if in.ToNodes != nil {
   205  		in, out := &in.ToNodes, &out.ToNodes
   206  		*out = make([]EndpointSelector, len(*in))
   207  		for i := range *in {
   208  			(*in)[i].DeepCopyInto(&(*out)[i])
   209  		}
   210  	}
   211  	if in.aggregatedSelectors != nil {
   212  		in, out := &in.aggregatedSelectors, &out.aggregatedSelectors
   213  		*out = make(EndpointSelectorSlice, len(*in))
   214  		for i := range *in {
   215  			(*in)[i].DeepCopyInto(&(*out)[i])
   216  		}
   217  	}
   218  	return
   219  }
   220  
   221  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EgressCommonRule.
   222  func (in *EgressCommonRule) DeepCopy() *EgressCommonRule {
   223  	if in == nil {
   224  		return nil
   225  	}
   226  	out := new(EgressCommonRule)
   227  	in.DeepCopyInto(out)
   228  	return out
   229  }
   230  
   231  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   232  func (in *EgressDenyRule) DeepCopyInto(out *EgressDenyRule) {
   233  	*out = *in
   234  	in.EgressCommonRule.DeepCopyInto(&out.EgressCommonRule)
   235  	if in.ToPorts != nil {
   236  		in, out := &in.ToPorts, &out.ToPorts
   237  		*out = make(PortDenyRules, len(*in))
   238  		for i := range *in {
   239  			(*in)[i].DeepCopyInto(&(*out)[i])
   240  		}
   241  	}
   242  	if in.ICMPs != nil {
   243  		in, out := &in.ICMPs, &out.ICMPs
   244  		*out = make(ICMPRules, len(*in))
   245  		for i := range *in {
   246  			(*in)[i].DeepCopyInto(&(*out)[i])
   247  		}
   248  	}
   249  	return
   250  }
   251  
   252  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EgressDenyRule.
   253  func (in *EgressDenyRule) DeepCopy() *EgressDenyRule {
   254  	if in == nil {
   255  		return nil
   256  	}
   257  	out := new(EgressDenyRule)
   258  	in.DeepCopyInto(out)
   259  	return out
   260  }
   261  
   262  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   263  func (in *EgressRule) DeepCopyInto(out *EgressRule) {
   264  	*out = *in
   265  	in.EgressCommonRule.DeepCopyInto(&out.EgressCommonRule)
   266  	if in.ToPorts != nil {
   267  		in, out := &in.ToPorts, &out.ToPorts
   268  		*out = make(PortRules, len(*in))
   269  		for i := range *in {
   270  			(*in)[i].DeepCopyInto(&(*out)[i])
   271  		}
   272  	}
   273  	if in.ToFQDNs != nil {
   274  		in, out := &in.ToFQDNs, &out.ToFQDNs
   275  		*out = make(FQDNSelectorSlice, len(*in))
   276  		copy(*out, *in)
   277  	}
   278  	if in.ICMPs != nil {
   279  		in, out := &in.ICMPs, &out.ICMPs
   280  		*out = make(ICMPRules, len(*in))
   281  		for i := range *in {
   282  			(*in)[i].DeepCopyInto(&(*out)[i])
   283  		}
   284  	}
   285  	if in.Authentication != nil {
   286  		in, out := &in.Authentication, &out.Authentication
   287  		*out = new(Authentication)
   288  		**out = **in
   289  	}
   290  	return
   291  }
   292  
   293  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EgressRule.
   294  func (in *EgressRule) DeepCopy() *EgressRule {
   295  	if in == nil {
   296  		return nil
   297  	}
   298  	out := new(EgressRule)
   299  	in.DeepCopyInto(out)
   300  	return out
   301  }
   302  
   303  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   304  func (in *EndpointSelector) DeepCopyInto(out *EndpointSelector) {
   305  	*out = *in
   306  	if in.LabelSelector != nil {
   307  		in, out := &in.LabelSelector, &out.LabelSelector
   308  		*out = new(v1.LabelSelector)
   309  		(*in).DeepCopyInto(*out)
   310  	}
   311  	if in.requirements != nil {
   312  		in, out := &in.requirements, &out.requirements
   313  		*out = new(labels.Requirements)
   314  		if **in != nil {
   315  			in, out := *in, *out
   316  			*out = make([]labels.Requirement, len(*in))
   317  			for i := range *in {
   318  				(*in)[i].DeepCopyInto(&(*out)[i])
   319  			}
   320  		}
   321  	}
   322  	return
   323  }
   324  
   325  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointSelector.
   326  func (in *EndpointSelector) DeepCopy() *EndpointSelector {
   327  	if in == nil {
   328  		return nil
   329  	}
   330  	out := new(EndpointSelector)
   331  	in.DeepCopyInto(out)
   332  	return out
   333  }
   334  
   335  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   336  func (in EndpointSelectorSlice) DeepCopyInto(out *EndpointSelectorSlice) {
   337  	{
   338  		in := &in
   339  		*out = make(EndpointSelectorSlice, len(*in))
   340  		for i := range *in {
   341  			(*in)[i].DeepCopyInto(&(*out)[i])
   342  		}
   343  		return
   344  	}
   345  }
   346  
   347  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointSelectorSlice.
   348  func (in EndpointSelectorSlice) DeepCopy() EndpointSelectorSlice {
   349  	if in == nil {
   350  		return nil
   351  	}
   352  	out := new(EndpointSelectorSlice)
   353  	in.DeepCopyInto(out)
   354  	return *out
   355  }
   356  
   357  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   358  func (in EntitySlice) DeepCopyInto(out *EntitySlice) {
   359  	{
   360  		in := &in
   361  		*out = make(EntitySlice, len(*in))
   362  		copy(*out, *in)
   363  		return
   364  	}
   365  }
   366  
   367  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EntitySlice.
   368  func (in EntitySlice) DeepCopy() EntitySlice {
   369  	if in == nil {
   370  		return nil
   371  	}
   372  	out := new(EntitySlice)
   373  	in.DeepCopyInto(out)
   374  	return *out
   375  }
   376  
   377  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   378  func (in *EnvoyConfig) DeepCopyInto(out *EnvoyConfig) {
   379  	*out = *in
   380  	return
   381  }
   382  
   383  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvoyConfig.
   384  func (in *EnvoyConfig) DeepCopy() *EnvoyConfig {
   385  	if in == nil {
   386  		return nil
   387  	}
   388  	out := new(EnvoyConfig)
   389  	in.DeepCopyInto(out)
   390  	return out
   391  }
   392  
   393  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   394  func (in *FQDNSelector) DeepCopyInto(out *FQDNSelector) {
   395  	*out = *in
   396  	return
   397  }
   398  
   399  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FQDNSelector.
   400  func (in *FQDNSelector) DeepCopy() *FQDNSelector {
   401  	if in == nil {
   402  		return nil
   403  	}
   404  	out := new(FQDNSelector)
   405  	in.DeepCopyInto(out)
   406  	return out
   407  }
   408  
   409  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   410  func (in FQDNSelectorSlice) DeepCopyInto(out *FQDNSelectorSlice) {
   411  	{
   412  		in := &in
   413  		*out = make(FQDNSelectorSlice, len(*in))
   414  		copy(*out, *in)
   415  		return
   416  	}
   417  }
   418  
   419  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FQDNSelectorSlice.
   420  func (in FQDNSelectorSlice) DeepCopy() FQDNSelectorSlice {
   421  	if in == nil {
   422  		return nil
   423  	}
   424  	out := new(FQDNSelectorSlice)
   425  	in.DeepCopyInto(out)
   426  	return *out
   427  }
   428  
   429  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   430  func (in *Groups) DeepCopyInto(out *Groups) {
   431  	*out = *in
   432  	if in.AWS != nil {
   433  		in, out := &in.AWS, &out.AWS
   434  		*out = new(AWSGroup)
   435  		(*in).DeepCopyInto(*out)
   436  	}
   437  	return
   438  }
   439  
   440  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Groups.
   441  func (in *Groups) DeepCopy() *Groups {
   442  	if in == nil {
   443  		return nil
   444  	}
   445  	out := new(Groups)
   446  	in.DeepCopyInto(out)
   447  	return out
   448  }
   449  
   450  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   451  func (in *HeaderMatch) DeepCopyInto(out *HeaderMatch) {
   452  	*out = *in
   453  	if in.Secret != nil {
   454  		in, out := &in.Secret, &out.Secret
   455  		*out = new(Secret)
   456  		**out = **in
   457  	}
   458  	return
   459  }
   460  
   461  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HeaderMatch.
   462  func (in *HeaderMatch) DeepCopy() *HeaderMatch {
   463  	if in == nil {
   464  		return nil
   465  	}
   466  	out := new(HeaderMatch)
   467  	in.DeepCopyInto(out)
   468  	return out
   469  }
   470  
   471  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   472  func (in *ICMPField) DeepCopyInto(out *ICMPField) {
   473  	*out = *in
   474  	if in.Type != nil {
   475  		in, out := &in.Type, &out.Type
   476  		*out = new(intstr.IntOrString)
   477  		**out = **in
   478  	}
   479  	return
   480  }
   481  
   482  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ICMPField.
   483  func (in *ICMPField) DeepCopy() *ICMPField {
   484  	if in == nil {
   485  		return nil
   486  	}
   487  	out := new(ICMPField)
   488  	in.DeepCopyInto(out)
   489  	return out
   490  }
   491  
   492  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   493  func (in *ICMPRule) DeepCopyInto(out *ICMPRule) {
   494  	*out = *in
   495  	if in.Fields != nil {
   496  		in, out := &in.Fields, &out.Fields
   497  		*out = make([]ICMPField, len(*in))
   498  		for i := range *in {
   499  			(*in)[i].DeepCopyInto(&(*out)[i])
   500  		}
   501  	}
   502  	return
   503  }
   504  
   505  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ICMPRule.
   506  func (in *ICMPRule) DeepCopy() *ICMPRule {
   507  	if in == nil {
   508  		return nil
   509  	}
   510  	out := new(ICMPRule)
   511  	in.DeepCopyInto(out)
   512  	return out
   513  }
   514  
   515  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   516  func (in ICMPRules) DeepCopyInto(out *ICMPRules) {
   517  	{
   518  		in := &in
   519  		*out = make(ICMPRules, len(*in))
   520  		for i := range *in {
   521  			(*in)[i].DeepCopyInto(&(*out)[i])
   522  		}
   523  		return
   524  	}
   525  }
   526  
   527  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ICMPRules.
   528  func (in ICMPRules) DeepCopy() ICMPRules {
   529  	if in == nil {
   530  		return nil
   531  	}
   532  	out := new(ICMPRules)
   533  	in.DeepCopyInto(out)
   534  	return *out
   535  }
   536  
   537  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   538  func (in *IngressCommonRule) DeepCopyInto(out *IngressCommonRule) {
   539  	*out = *in
   540  	if in.FromEndpoints != nil {
   541  		in, out := &in.FromEndpoints, &out.FromEndpoints
   542  		*out = make([]EndpointSelector, len(*in))
   543  		for i := range *in {
   544  			(*in)[i].DeepCopyInto(&(*out)[i])
   545  		}
   546  	}
   547  	if in.FromRequires != nil {
   548  		in, out := &in.FromRequires, &out.FromRequires
   549  		*out = make([]EndpointSelector, len(*in))
   550  		for i := range *in {
   551  			(*in)[i].DeepCopyInto(&(*out)[i])
   552  		}
   553  	}
   554  	if in.FromCIDR != nil {
   555  		in, out := &in.FromCIDR, &out.FromCIDR
   556  		*out = make(CIDRSlice, len(*in))
   557  		copy(*out, *in)
   558  	}
   559  	if in.FromCIDRSet != nil {
   560  		in, out := &in.FromCIDRSet, &out.FromCIDRSet
   561  		*out = make(CIDRRuleSlice, len(*in))
   562  		for i := range *in {
   563  			(*in)[i].DeepCopyInto(&(*out)[i])
   564  		}
   565  	}
   566  	if in.FromEntities != nil {
   567  		in, out := &in.FromEntities, &out.FromEntities
   568  		*out = make(EntitySlice, len(*in))
   569  		copy(*out, *in)
   570  	}
   571  	if in.FromGroups != nil {
   572  		in, out := &in.FromGroups, &out.FromGroups
   573  		*out = make([]Groups, len(*in))
   574  		for i := range *in {
   575  			(*in)[i].DeepCopyInto(&(*out)[i])
   576  		}
   577  	}
   578  	if in.FromNodes != nil {
   579  		in, out := &in.FromNodes, &out.FromNodes
   580  		*out = make([]EndpointSelector, len(*in))
   581  		for i := range *in {
   582  			(*in)[i].DeepCopyInto(&(*out)[i])
   583  		}
   584  	}
   585  	if in.aggregatedSelectors != nil {
   586  		in, out := &in.aggregatedSelectors, &out.aggregatedSelectors
   587  		*out = make(EndpointSelectorSlice, len(*in))
   588  		for i := range *in {
   589  			(*in)[i].DeepCopyInto(&(*out)[i])
   590  		}
   591  	}
   592  	return
   593  }
   594  
   595  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressCommonRule.
   596  func (in *IngressCommonRule) DeepCopy() *IngressCommonRule {
   597  	if in == nil {
   598  		return nil
   599  	}
   600  	out := new(IngressCommonRule)
   601  	in.DeepCopyInto(out)
   602  	return out
   603  }
   604  
   605  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   606  func (in *IngressDenyRule) DeepCopyInto(out *IngressDenyRule) {
   607  	*out = *in
   608  	in.IngressCommonRule.DeepCopyInto(&out.IngressCommonRule)
   609  	if in.ToPorts != nil {
   610  		in, out := &in.ToPorts, &out.ToPorts
   611  		*out = make(PortDenyRules, len(*in))
   612  		for i := range *in {
   613  			(*in)[i].DeepCopyInto(&(*out)[i])
   614  		}
   615  	}
   616  	if in.ICMPs != nil {
   617  		in, out := &in.ICMPs, &out.ICMPs
   618  		*out = make(ICMPRules, len(*in))
   619  		for i := range *in {
   620  			(*in)[i].DeepCopyInto(&(*out)[i])
   621  		}
   622  	}
   623  	return
   624  }
   625  
   626  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressDenyRule.
   627  func (in *IngressDenyRule) DeepCopy() *IngressDenyRule {
   628  	if in == nil {
   629  		return nil
   630  	}
   631  	out := new(IngressDenyRule)
   632  	in.DeepCopyInto(out)
   633  	return out
   634  }
   635  
   636  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   637  func (in *IngressRule) DeepCopyInto(out *IngressRule) {
   638  	*out = *in
   639  	in.IngressCommonRule.DeepCopyInto(&out.IngressCommonRule)
   640  	if in.ToPorts != nil {
   641  		in, out := &in.ToPorts, &out.ToPorts
   642  		*out = make(PortRules, len(*in))
   643  		for i := range *in {
   644  			(*in)[i].DeepCopyInto(&(*out)[i])
   645  		}
   646  	}
   647  	if in.ICMPs != nil {
   648  		in, out := &in.ICMPs, &out.ICMPs
   649  		*out = make(ICMPRules, len(*in))
   650  		for i := range *in {
   651  			(*in)[i].DeepCopyInto(&(*out)[i])
   652  		}
   653  	}
   654  	if in.Authentication != nil {
   655  		in, out := &in.Authentication, &out.Authentication
   656  		*out = new(Authentication)
   657  		**out = **in
   658  	}
   659  	return
   660  }
   661  
   662  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressRule.
   663  func (in *IngressRule) DeepCopy() *IngressRule {
   664  	if in == nil {
   665  		return nil
   666  	}
   667  	out := new(IngressRule)
   668  	in.DeepCopyInto(out)
   669  	return out
   670  }
   671  
   672  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   673  func (in *K8sServiceNamespace) DeepCopyInto(out *K8sServiceNamespace) {
   674  	*out = *in
   675  	return
   676  }
   677  
   678  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K8sServiceNamespace.
   679  func (in *K8sServiceNamespace) DeepCopy() *K8sServiceNamespace {
   680  	if in == nil {
   681  		return nil
   682  	}
   683  	out := new(K8sServiceNamespace)
   684  	in.DeepCopyInto(out)
   685  	return out
   686  }
   687  
   688  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   689  func (in *K8sServiceSelectorNamespace) DeepCopyInto(out *K8sServiceSelectorNamespace) {
   690  	*out = *in
   691  	in.Selector.DeepCopyInto(&out.Selector)
   692  	return
   693  }
   694  
   695  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K8sServiceSelectorNamespace.
   696  func (in *K8sServiceSelectorNamespace) DeepCopy() *K8sServiceSelectorNamespace {
   697  	if in == nil {
   698  		return nil
   699  	}
   700  	out := new(K8sServiceSelectorNamespace)
   701  	in.DeepCopyInto(out)
   702  	return out
   703  }
   704  
   705  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   706  func (in *L7Rules) DeepCopyInto(out *L7Rules) {
   707  	*out = *in
   708  	if in.HTTP != nil {
   709  		in, out := &in.HTTP, &out.HTTP
   710  		*out = make([]PortRuleHTTP, len(*in))
   711  		for i := range *in {
   712  			(*in)[i].DeepCopyInto(&(*out)[i])
   713  		}
   714  	}
   715  	if in.Kafka != nil {
   716  		in, out := &in.Kafka, &out.Kafka
   717  		*out = make([]kafka.PortRule, len(*in))
   718  		copy(*out, *in)
   719  	}
   720  	if in.DNS != nil {
   721  		in, out := &in.DNS, &out.DNS
   722  		*out = make([]PortRuleDNS, len(*in))
   723  		copy(*out, *in)
   724  	}
   725  	if in.L7 != nil {
   726  		in, out := &in.L7, &out.L7
   727  		*out = make([]PortRuleL7, len(*in))
   728  		for i := range *in {
   729  			if (*in)[i] != nil {
   730  				in, out := &(*in)[i], &(*out)[i]
   731  				*out = make(PortRuleL7, len(*in))
   732  				for key, val := range *in {
   733  					(*out)[key] = val
   734  				}
   735  			}
   736  		}
   737  	}
   738  	return
   739  }
   740  
   741  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new L7Rules.
   742  func (in *L7Rules) DeepCopy() *L7Rules {
   743  	if in == nil {
   744  		return nil
   745  	}
   746  	out := new(L7Rules)
   747  	in.DeepCopyInto(out)
   748  	return out
   749  }
   750  
   751  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   752  func (in *Listener) DeepCopyInto(out *Listener) {
   753  	*out = *in
   754  	if in.EnvoyConfig != nil {
   755  		in, out := &in.EnvoyConfig, &out.EnvoyConfig
   756  		*out = new(EnvoyConfig)
   757  		**out = **in
   758  	}
   759  	return
   760  }
   761  
   762  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Listener.
   763  func (in *Listener) DeepCopy() *Listener {
   764  	if in == nil {
   765  		return nil
   766  	}
   767  	out := new(Listener)
   768  	in.DeepCopyInto(out)
   769  	return out
   770  }
   771  
   772  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   773  func (in *PortDenyRule) DeepCopyInto(out *PortDenyRule) {
   774  	*out = *in
   775  	if in.Ports != nil {
   776  		in, out := &in.Ports, &out.Ports
   777  		*out = make([]PortProtocol, len(*in))
   778  		copy(*out, *in)
   779  	}
   780  	return
   781  }
   782  
   783  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortDenyRule.
   784  func (in *PortDenyRule) DeepCopy() *PortDenyRule {
   785  	if in == nil {
   786  		return nil
   787  	}
   788  	out := new(PortDenyRule)
   789  	in.DeepCopyInto(out)
   790  	return out
   791  }
   792  
   793  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   794  func (in PortDenyRules) DeepCopyInto(out *PortDenyRules) {
   795  	{
   796  		in := &in
   797  		*out = make(PortDenyRules, len(*in))
   798  		for i := range *in {
   799  			(*in)[i].DeepCopyInto(&(*out)[i])
   800  		}
   801  		return
   802  	}
   803  }
   804  
   805  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortDenyRules.
   806  func (in PortDenyRules) DeepCopy() PortDenyRules {
   807  	if in == nil {
   808  		return nil
   809  	}
   810  	out := new(PortDenyRules)
   811  	in.DeepCopyInto(out)
   812  	return *out
   813  }
   814  
   815  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   816  func (in *PortProtocol) DeepCopyInto(out *PortProtocol) {
   817  	*out = *in
   818  	return
   819  }
   820  
   821  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortProtocol.
   822  func (in *PortProtocol) DeepCopy() *PortProtocol {
   823  	if in == nil {
   824  		return nil
   825  	}
   826  	out := new(PortProtocol)
   827  	in.DeepCopyInto(out)
   828  	return out
   829  }
   830  
   831  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   832  func (in *PortRule) DeepCopyInto(out *PortRule) {
   833  	*out = *in
   834  	if in.Ports != nil {
   835  		in, out := &in.Ports, &out.Ports
   836  		*out = make([]PortProtocol, len(*in))
   837  		copy(*out, *in)
   838  	}
   839  	if in.TerminatingTLS != nil {
   840  		in, out := &in.TerminatingTLS, &out.TerminatingTLS
   841  		*out = new(TLSContext)
   842  		(*in).DeepCopyInto(*out)
   843  	}
   844  	if in.OriginatingTLS != nil {
   845  		in, out := &in.OriginatingTLS, &out.OriginatingTLS
   846  		*out = new(TLSContext)
   847  		(*in).DeepCopyInto(*out)
   848  	}
   849  	if in.ServerNames != nil {
   850  		in, out := &in.ServerNames, &out.ServerNames
   851  		*out = make([]string, len(*in))
   852  		copy(*out, *in)
   853  	}
   854  	if in.Listener != nil {
   855  		in, out := &in.Listener, &out.Listener
   856  		*out = new(Listener)
   857  		(*in).DeepCopyInto(*out)
   858  	}
   859  	if in.Rules != nil {
   860  		in, out := &in.Rules, &out.Rules
   861  		*out = new(L7Rules)
   862  		(*in).DeepCopyInto(*out)
   863  	}
   864  	return
   865  }
   866  
   867  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortRule.
   868  func (in *PortRule) DeepCopy() *PortRule {
   869  	if in == nil {
   870  		return nil
   871  	}
   872  	out := new(PortRule)
   873  	in.DeepCopyInto(out)
   874  	return out
   875  }
   876  
   877  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   878  func (in *PortRuleDNS) DeepCopyInto(out *PortRuleDNS) {
   879  	*out = *in
   880  	return
   881  }
   882  
   883  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortRuleDNS.
   884  func (in *PortRuleDNS) DeepCopy() *PortRuleDNS {
   885  	if in == nil {
   886  		return nil
   887  	}
   888  	out := new(PortRuleDNS)
   889  	in.DeepCopyInto(out)
   890  	return out
   891  }
   892  
   893  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   894  func (in *PortRuleHTTP) DeepCopyInto(out *PortRuleHTTP) {
   895  	*out = *in
   896  	if in.Headers != nil {
   897  		in, out := &in.Headers, &out.Headers
   898  		*out = make([]string, len(*in))
   899  		copy(*out, *in)
   900  	}
   901  	if in.HeaderMatches != nil {
   902  		in, out := &in.HeaderMatches, &out.HeaderMatches
   903  		*out = make([]*HeaderMatch, len(*in))
   904  		for i := range *in {
   905  			if (*in)[i] != nil {
   906  				in, out := &(*in)[i], &(*out)[i]
   907  				*out = new(HeaderMatch)
   908  				(*in).DeepCopyInto(*out)
   909  			}
   910  		}
   911  	}
   912  	return
   913  }
   914  
   915  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortRuleHTTP.
   916  func (in *PortRuleHTTP) DeepCopy() *PortRuleHTTP {
   917  	if in == nil {
   918  		return nil
   919  	}
   920  	out := new(PortRuleHTTP)
   921  	in.DeepCopyInto(out)
   922  	return out
   923  }
   924  
   925  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   926  func (in PortRuleL7) DeepCopyInto(out *PortRuleL7) {
   927  	{
   928  		in := &in
   929  		*out = make(PortRuleL7, len(*in))
   930  		for key, val := range *in {
   931  			(*out)[key] = val
   932  		}
   933  		return
   934  	}
   935  }
   936  
   937  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortRuleL7.
   938  func (in PortRuleL7) DeepCopy() PortRuleL7 {
   939  	if in == nil {
   940  		return nil
   941  	}
   942  	out := new(PortRuleL7)
   943  	in.DeepCopyInto(out)
   944  	return *out
   945  }
   946  
   947  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   948  func (in PortRules) DeepCopyInto(out *PortRules) {
   949  	{
   950  		in := &in
   951  		*out = make(PortRules, len(*in))
   952  		for i := range *in {
   953  			(*in)[i].DeepCopyInto(&(*out)[i])
   954  		}
   955  		return
   956  	}
   957  }
   958  
   959  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortRules.
   960  func (in PortRules) DeepCopy() PortRules {
   961  	if in == nil {
   962  		return nil
   963  	}
   964  	out := new(PortRules)
   965  	in.DeepCopyInto(out)
   966  	return *out
   967  }
   968  
   969  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   970  func (in *Rule) DeepCopyInto(out *Rule) {
   971  	*out = *in
   972  	in.EndpointSelector.DeepCopyInto(&out.EndpointSelector)
   973  	in.NodeSelector.DeepCopyInto(&out.NodeSelector)
   974  	if in.Ingress != nil {
   975  		in, out := &in.Ingress, &out.Ingress
   976  		*out = make([]IngressRule, len(*in))
   977  		for i := range *in {
   978  			(*in)[i].DeepCopyInto(&(*out)[i])
   979  		}
   980  	}
   981  	if in.IngressDeny != nil {
   982  		in, out := &in.IngressDeny, &out.IngressDeny
   983  		*out = make([]IngressDenyRule, len(*in))
   984  		for i := range *in {
   985  			(*in)[i].DeepCopyInto(&(*out)[i])
   986  		}
   987  	}
   988  	if in.Egress != nil {
   989  		in, out := &in.Egress, &out.Egress
   990  		*out = make([]EgressRule, len(*in))
   991  		for i := range *in {
   992  			(*in)[i].DeepCopyInto(&(*out)[i])
   993  		}
   994  	}
   995  	if in.EgressDeny != nil {
   996  		in, out := &in.EgressDeny, &out.EgressDeny
   997  		*out = make([]EgressDenyRule, len(*in))
   998  		for i := range *in {
   999  			(*in)[i].DeepCopyInto(&(*out)[i])
  1000  		}
  1001  	}
  1002  	out.Labels = in.Labels.DeepCopy()
  1003  	in.EnableDefaultDeny.DeepCopyInto(&out.EnableDefaultDeny)
  1004  	return
  1005  }
  1006  
  1007  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rule.
  1008  func (in *Rule) DeepCopy() *Rule {
  1009  	if in == nil {
  1010  		return nil
  1011  	}
  1012  	out := new(Rule)
  1013  	in.DeepCopyInto(out)
  1014  	return out
  1015  }
  1016  
  1017  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  1018  func (in Rules) DeepCopyInto(out *Rules) {
  1019  	{
  1020  		in := &in
  1021  		*out = make(Rules, len(*in))
  1022  		for i := range *in {
  1023  			if (*in)[i] != nil {
  1024  				in, out := &(*in)[i], &(*out)[i]
  1025  				*out = new(Rule)
  1026  				(*in).DeepCopyInto(*out)
  1027  			}
  1028  		}
  1029  		return
  1030  	}
  1031  }
  1032  
  1033  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rules.
  1034  func (in Rules) DeepCopy() Rules {
  1035  	if in == nil {
  1036  		return nil
  1037  	}
  1038  	out := new(Rules)
  1039  	in.DeepCopyInto(out)
  1040  	return *out
  1041  }
  1042  
  1043  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  1044  func (in *Secret) DeepCopyInto(out *Secret) {
  1045  	*out = *in
  1046  	return
  1047  }
  1048  
  1049  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Secret.
  1050  func (in *Secret) DeepCopy() *Secret {
  1051  	if in == nil {
  1052  		return nil
  1053  	}
  1054  	out := new(Secret)
  1055  	in.DeepCopyInto(out)
  1056  	return out
  1057  }
  1058  
  1059  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  1060  func (in *Service) DeepCopyInto(out *Service) {
  1061  	*out = *in
  1062  	if in.K8sServiceSelector != nil {
  1063  		in, out := &in.K8sServiceSelector, &out.K8sServiceSelector
  1064  		*out = new(K8sServiceSelectorNamespace)
  1065  		(*in).DeepCopyInto(*out)
  1066  	}
  1067  	if in.K8sService != nil {
  1068  		in, out := &in.K8sService, &out.K8sService
  1069  		*out = new(K8sServiceNamespace)
  1070  		**out = **in
  1071  	}
  1072  	return
  1073  }
  1074  
  1075  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Service.
  1076  func (in *Service) DeepCopy() *Service {
  1077  	if in == nil {
  1078  		return nil
  1079  	}
  1080  	out := new(Service)
  1081  	in.DeepCopyInto(out)
  1082  	return out
  1083  }
  1084  
  1085  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  1086  func (in *ServiceSelector) DeepCopyInto(out *ServiceSelector) {
  1087  	*out = *in
  1088  	if in.LabelSelector != nil {
  1089  		in, out := &in.LabelSelector, &out.LabelSelector
  1090  		*out = new(v1.LabelSelector)
  1091  		(*in).DeepCopyInto(*out)
  1092  	}
  1093  	if in.requirements != nil {
  1094  		in, out := &in.requirements, &out.requirements
  1095  		*out = new(labels.Requirements)
  1096  		if **in != nil {
  1097  			in, out := *in, *out
  1098  			*out = make([]labels.Requirement, len(*in))
  1099  			for i := range *in {
  1100  				(*in)[i].DeepCopyInto(&(*out)[i])
  1101  			}
  1102  		}
  1103  	}
  1104  	return
  1105  }
  1106  
  1107  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceSelector.
  1108  func (in *ServiceSelector) DeepCopy() *ServiceSelector {
  1109  	if in == nil {
  1110  		return nil
  1111  	}
  1112  	out := new(ServiceSelector)
  1113  	in.DeepCopyInto(out)
  1114  	return out
  1115  }
  1116  
  1117  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  1118  func (in *TLSContext) DeepCopyInto(out *TLSContext) {
  1119  	*out = *in
  1120  	if in.Secret != nil {
  1121  		in, out := &in.Secret, &out.Secret
  1122  		*out = new(Secret)
  1123  		**out = **in
  1124  	}
  1125  	return
  1126  }
  1127  
  1128  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLSContext.
  1129  func (in *TLSContext) DeepCopy() *TLSContext {
  1130  	if in == nil {
  1131  		return nil
  1132  	}
  1133  	out := new(TLSContext)
  1134  	in.DeepCopyInto(out)
  1135  	return out
  1136  }