...

Source file src/k8s.io/api/admissionregistration/v1alpha1/zz_generated.deepcopy.go

Documentation: k8s.io/api/admissionregistration/v1alpha1

     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 v1alpha1
    23  
    24  import (
    25  	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    26  	runtime "k8s.io/apimachinery/pkg/runtime"
    27  )
    28  
    29  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    30  func (in *AuditAnnotation) DeepCopyInto(out *AuditAnnotation) {
    31  	*out = *in
    32  	return
    33  }
    34  
    35  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuditAnnotation.
    36  func (in *AuditAnnotation) DeepCopy() *AuditAnnotation {
    37  	if in == nil {
    38  		return nil
    39  	}
    40  	out := new(AuditAnnotation)
    41  	in.DeepCopyInto(out)
    42  	return out
    43  }
    44  
    45  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    46  func (in *ExpressionWarning) DeepCopyInto(out *ExpressionWarning) {
    47  	*out = *in
    48  	return
    49  }
    50  
    51  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExpressionWarning.
    52  func (in *ExpressionWarning) DeepCopy() *ExpressionWarning {
    53  	if in == nil {
    54  		return nil
    55  	}
    56  	out := new(ExpressionWarning)
    57  	in.DeepCopyInto(out)
    58  	return out
    59  }
    60  
    61  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    62  func (in *MatchCondition) DeepCopyInto(out *MatchCondition) {
    63  	*out = *in
    64  	return
    65  }
    66  
    67  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MatchCondition.
    68  func (in *MatchCondition) DeepCopy() *MatchCondition {
    69  	if in == nil {
    70  		return nil
    71  	}
    72  	out := new(MatchCondition)
    73  	in.DeepCopyInto(out)
    74  	return out
    75  }
    76  
    77  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    78  func (in *MatchResources) DeepCopyInto(out *MatchResources) {
    79  	*out = *in
    80  	if in.NamespaceSelector != nil {
    81  		in, out := &in.NamespaceSelector, &out.NamespaceSelector
    82  		*out = new(v1.LabelSelector)
    83  		(*in).DeepCopyInto(*out)
    84  	}
    85  	if in.ObjectSelector != nil {
    86  		in, out := &in.ObjectSelector, &out.ObjectSelector
    87  		*out = new(v1.LabelSelector)
    88  		(*in).DeepCopyInto(*out)
    89  	}
    90  	if in.ResourceRules != nil {
    91  		in, out := &in.ResourceRules, &out.ResourceRules
    92  		*out = make([]NamedRuleWithOperations, len(*in))
    93  		for i := range *in {
    94  			(*in)[i].DeepCopyInto(&(*out)[i])
    95  		}
    96  	}
    97  	if in.ExcludeResourceRules != nil {
    98  		in, out := &in.ExcludeResourceRules, &out.ExcludeResourceRules
    99  		*out = make([]NamedRuleWithOperations, len(*in))
   100  		for i := range *in {
   101  			(*in)[i].DeepCopyInto(&(*out)[i])
   102  		}
   103  	}
   104  	if in.MatchPolicy != nil {
   105  		in, out := &in.MatchPolicy, &out.MatchPolicy
   106  		*out = new(MatchPolicyType)
   107  		**out = **in
   108  	}
   109  	return
   110  }
   111  
   112  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MatchResources.
   113  func (in *MatchResources) DeepCopy() *MatchResources {
   114  	if in == nil {
   115  		return nil
   116  	}
   117  	out := new(MatchResources)
   118  	in.DeepCopyInto(out)
   119  	return out
   120  }
   121  
   122  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   123  func (in *NamedRuleWithOperations) DeepCopyInto(out *NamedRuleWithOperations) {
   124  	*out = *in
   125  	if in.ResourceNames != nil {
   126  		in, out := &in.ResourceNames, &out.ResourceNames
   127  		*out = make([]string, len(*in))
   128  		copy(*out, *in)
   129  	}
   130  	in.RuleWithOperations.DeepCopyInto(&out.RuleWithOperations)
   131  	return
   132  }
   133  
   134  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedRuleWithOperations.
   135  func (in *NamedRuleWithOperations) DeepCopy() *NamedRuleWithOperations {
   136  	if in == nil {
   137  		return nil
   138  	}
   139  	out := new(NamedRuleWithOperations)
   140  	in.DeepCopyInto(out)
   141  	return out
   142  }
   143  
   144  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   145  func (in *ParamKind) DeepCopyInto(out *ParamKind) {
   146  	*out = *in
   147  	return
   148  }
   149  
   150  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParamKind.
   151  func (in *ParamKind) DeepCopy() *ParamKind {
   152  	if in == nil {
   153  		return nil
   154  	}
   155  	out := new(ParamKind)
   156  	in.DeepCopyInto(out)
   157  	return out
   158  }
   159  
   160  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   161  func (in *ParamRef) DeepCopyInto(out *ParamRef) {
   162  	*out = *in
   163  	if in.Selector != nil {
   164  		in, out := &in.Selector, &out.Selector
   165  		*out = new(v1.LabelSelector)
   166  		(*in).DeepCopyInto(*out)
   167  	}
   168  	if in.ParameterNotFoundAction != nil {
   169  		in, out := &in.ParameterNotFoundAction, &out.ParameterNotFoundAction
   170  		*out = new(ParameterNotFoundActionType)
   171  		**out = **in
   172  	}
   173  	return
   174  }
   175  
   176  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParamRef.
   177  func (in *ParamRef) DeepCopy() *ParamRef {
   178  	if in == nil {
   179  		return nil
   180  	}
   181  	out := new(ParamRef)
   182  	in.DeepCopyInto(out)
   183  	return out
   184  }
   185  
   186  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   187  func (in *TypeChecking) DeepCopyInto(out *TypeChecking) {
   188  	*out = *in
   189  	if in.ExpressionWarnings != nil {
   190  		in, out := &in.ExpressionWarnings, &out.ExpressionWarnings
   191  		*out = make([]ExpressionWarning, len(*in))
   192  		copy(*out, *in)
   193  	}
   194  	return
   195  }
   196  
   197  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TypeChecking.
   198  func (in *TypeChecking) DeepCopy() *TypeChecking {
   199  	if in == nil {
   200  		return nil
   201  	}
   202  	out := new(TypeChecking)
   203  	in.DeepCopyInto(out)
   204  	return out
   205  }
   206  
   207  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   208  func (in *ValidatingAdmissionPolicy) DeepCopyInto(out *ValidatingAdmissionPolicy) {
   209  	*out = *in
   210  	out.TypeMeta = in.TypeMeta
   211  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
   212  	in.Spec.DeepCopyInto(&out.Spec)
   213  	in.Status.DeepCopyInto(&out.Status)
   214  	return
   215  }
   216  
   217  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicy.
   218  func (in *ValidatingAdmissionPolicy) DeepCopy() *ValidatingAdmissionPolicy {
   219  	if in == nil {
   220  		return nil
   221  	}
   222  	out := new(ValidatingAdmissionPolicy)
   223  	in.DeepCopyInto(out)
   224  	return out
   225  }
   226  
   227  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   228  func (in *ValidatingAdmissionPolicy) DeepCopyObject() runtime.Object {
   229  	if c := in.DeepCopy(); c != nil {
   230  		return c
   231  	}
   232  	return nil
   233  }
   234  
   235  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   236  func (in *ValidatingAdmissionPolicyBinding) DeepCopyInto(out *ValidatingAdmissionPolicyBinding) {
   237  	*out = *in
   238  	out.TypeMeta = in.TypeMeta
   239  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
   240  	in.Spec.DeepCopyInto(&out.Spec)
   241  	return
   242  }
   243  
   244  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicyBinding.
   245  func (in *ValidatingAdmissionPolicyBinding) DeepCopy() *ValidatingAdmissionPolicyBinding {
   246  	if in == nil {
   247  		return nil
   248  	}
   249  	out := new(ValidatingAdmissionPolicyBinding)
   250  	in.DeepCopyInto(out)
   251  	return out
   252  }
   253  
   254  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   255  func (in *ValidatingAdmissionPolicyBinding) DeepCopyObject() runtime.Object {
   256  	if c := in.DeepCopy(); c != nil {
   257  		return c
   258  	}
   259  	return nil
   260  }
   261  
   262  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   263  func (in *ValidatingAdmissionPolicyBindingList) DeepCopyInto(out *ValidatingAdmissionPolicyBindingList) {
   264  	*out = *in
   265  	out.TypeMeta = in.TypeMeta
   266  	in.ListMeta.DeepCopyInto(&out.ListMeta)
   267  	if in.Items != nil {
   268  		in, out := &in.Items, &out.Items
   269  		*out = make([]ValidatingAdmissionPolicyBinding, len(*in))
   270  		for i := range *in {
   271  			(*in)[i].DeepCopyInto(&(*out)[i])
   272  		}
   273  	}
   274  	return
   275  }
   276  
   277  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicyBindingList.
   278  func (in *ValidatingAdmissionPolicyBindingList) DeepCopy() *ValidatingAdmissionPolicyBindingList {
   279  	if in == nil {
   280  		return nil
   281  	}
   282  	out := new(ValidatingAdmissionPolicyBindingList)
   283  	in.DeepCopyInto(out)
   284  	return out
   285  }
   286  
   287  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   288  func (in *ValidatingAdmissionPolicyBindingList) DeepCopyObject() runtime.Object {
   289  	if c := in.DeepCopy(); c != nil {
   290  		return c
   291  	}
   292  	return nil
   293  }
   294  
   295  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   296  func (in *ValidatingAdmissionPolicyBindingSpec) DeepCopyInto(out *ValidatingAdmissionPolicyBindingSpec) {
   297  	*out = *in
   298  	if in.ParamRef != nil {
   299  		in, out := &in.ParamRef, &out.ParamRef
   300  		*out = new(ParamRef)
   301  		(*in).DeepCopyInto(*out)
   302  	}
   303  	if in.MatchResources != nil {
   304  		in, out := &in.MatchResources, &out.MatchResources
   305  		*out = new(MatchResources)
   306  		(*in).DeepCopyInto(*out)
   307  	}
   308  	if in.ValidationActions != nil {
   309  		in, out := &in.ValidationActions, &out.ValidationActions
   310  		*out = make([]ValidationAction, len(*in))
   311  		copy(*out, *in)
   312  	}
   313  	return
   314  }
   315  
   316  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicyBindingSpec.
   317  func (in *ValidatingAdmissionPolicyBindingSpec) DeepCopy() *ValidatingAdmissionPolicyBindingSpec {
   318  	if in == nil {
   319  		return nil
   320  	}
   321  	out := new(ValidatingAdmissionPolicyBindingSpec)
   322  	in.DeepCopyInto(out)
   323  	return out
   324  }
   325  
   326  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   327  func (in *ValidatingAdmissionPolicyList) DeepCopyInto(out *ValidatingAdmissionPolicyList) {
   328  	*out = *in
   329  	out.TypeMeta = in.TypeMeta
   330  	in.ListMeta.DeepCopyInto(&out.ListMeta)
   331  	if in.Items != nil {
   332  		in, out := &in.Items, &out.Items
   333  		*out = make([]ValidatingAdmissionPolicy, len(*in))
   334  		for i := range *in {
   335  			(*in)[i].DeepCopyInto(&(*out)[i])
   336  		}
   337  	}
   338  	return
   339  }
   340  
   341  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicyList.
   342  func (in *ValidatingAdmissionPolicyList) DeepCopy() *ValidatingAdmissionPolicyList {
   343  	if in == nil {
   344  		return nil
   345  	}
   346  	out := new(ValidatingAdmissionPolicyList)
   347  	in.DeepCopyInto(out)
   348  	return out
   349  }
   350  
   351  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   352  func (in *ValidatingAdmissionPolicyList) DeepCopyObject() runtime.Object {
   353  	if c := in.DeepCopy(); c != nil {
   354  		return c
   355  	}
   356  	return nil
   357  }
   358  
   359  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   360  func (in *ValidatingAdmissionPolicySpec) DeepCopyInto(out *ValidatingAdmissionPolicySpec) {
   361  	*out = *in
   362  	if in.ParamKind != nil {
   363  		in, out := &in.ParamKind, &out.ParamKind
   364  		*out = new(ParamKind)
   365  		**out = **in
   366  	}
   367  	if in.MatchConstraints != nil {
   368  		in, out := &in.MatchConstraints, &out.MatchConstraints
   369  		*out = new(MatchResources)
   370  		(*in).DeepCopyInto(*out)
   371  	}
   372  	if in.Validations != nil {
   373  		in, out := &in.Validations, &out.Validations
   374  		*out = make([]Validation, len(*in))
   375  		for i := range *in {
   376  			(*in)[i].DeepCopyInto(&(*out)[i])
   377  		}
   378  	}
   379  	if in.FailurePolicy != nil {
   380  		in, out := &in.FailurePolicy, &out.FailurePolicy
   381  		*out = new(FailurePolicyType)
   382  		**out = **in
   383  	}
   384  	if in.AuditAnnotations != nil {
   385  		in, out := &in.AuditAnnotations, &out.AuditAnnotations
   386  		*out = make([]AuditAnnotation, len(*in))
   387  		copy(*out, *in)
   388  	}
   389  	if in.MatchConditions != nil {
   390  		in, out := &in.MatchConditions, &out.MatchConditions
   391  		*out = make([]MatchCondition, len(*in))
   392  		copy(*out, *in)
   393  	}
   394  	if in.Variables != nil {
   395  		in, out := &in.Variables, &out.Variables
   396  		*out = make([]Variable, len(*in))
   397  		copy(*out, *in)
   398  	}
   399  	return
   400  }
   401  
   402  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicySpec.
   403  func (in *ValidatingAdmissionPolicySpec) DeepCopy() *ValidatingAdmissionPolicySpec {
   404  	if in == nil {
   405  		return nil
   406  	}
   407  	out := new(ValidatingAdmissionPolicySpec)
   408  	in.DeepCopyInto(out)
   409  	return out
   410  }
   411  
   412  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   413  func (in *ValidatingAdmissionPolicyStatus) DeepCopyInto(out *ValidatingAdmissionPolicyStatus) {
   414  	*out = *in
   415  	if in.TypeChecking != nil {
   416  		in, out := &in.TypeChecking, &out.TypeChecking
   417  		*out = new(TypeChecking)
   418  		(*in).DeepCopyInto(*out)
   419  	}
   420  	if in.Conditions != nil {
   421  		in, out := &in.Conditions, &out.Conditions
   422  		*out = make([]v1.Condition, len(*in))
   423  		for i := range *in {
   424  			(*in)[i].DeepCopyInto(&(*out)[i])
   425  		}
   426  	}
   427  	return
   428  }
   429  
   430  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingAdmissionPolicyStatus.
   431  func (in *ValidatingAdmissionPolicyStatus) DeepCopy() *ValidatingAdmissionPolicyStatus {
   432  	if in == nil {
   433  		return nil
   434  	}
   435  	out := new(ValidatingAdmissionPolicyStatus)
   436  	in.DeepCopyInto(out)
   437  	return out
   438  }
   439  
   440  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   441  func (in *Validation) DeepCopyInto(out *Validation) {
   442  	*out = *in
   443  	if in.Reason != nil {
   444  		in, out := &in.Reason, &out.Reason
   445  		*out = new(v1.StatusReason)
   446  		**out = **in
   447  	}
   448  	return
   449  }
   450  
   451  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Validation.
   452  func (in *Validation) DeepCopy() *Validation {
   453  	if in == nil {
   454  		return nil
   455  	}
   456  	out := new(Validation)
   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 *Variable) DeepCopyInto(out *Variable) {
   463  	*out = *in
   464  	return
   465  }
   466  
   467  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Variable.
   468  func (in *Variable) DeepCopy() *Variable {
   469  	if in == nil {
   470  		return nil
   471  	}
   472  	out := new(Variable)
   473  	in.DeepCopyInto(out)
   474  	return out
   475  }
   476  

View as plain text