sigs.k8s.io/prow@v0.0.0-20240503223140-c5e374dc7eb1/pkg/config/zz_generated.deepcopy.go (about)

     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 config
    23  
    24  import (
    25  	json "encoding/json"
    26  
    27  	v1beta1 "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1"
    28  	v1 "k8s.io/api/core/v1"
    29  	prowjobsv1 "sigs.k8s.io/prow/pkg/apis/prowjobs/v1"
    30  )
    31  
    32  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    33  func (in *Brancher) DeepCopyInto(out *Brancher) {
    34  	*out = *in
    35  	if in.SkipBranches != nil {
    36  		in, out := &in.SkipBranches, &out.SkipBranches
    37  		*out = make([]string, len(*in))
    38  		copy(*out, *in)
    39  	}
    40  	if in.Branches != nil {
    41  		in, out := &in.Branches, &out.Branches
    42  		*out = make([]string, len(*in))
    43  		copy(*out, *in)
    44  	}
    45  	if in.re != nil {
    46  		in, out := &in.re, &out.re
    47  		*out = (*in).DeepCopy()
    48  	}
    49  	if in.reSkip != nil {
    50  		in, out := &in.reSkip, &out.reSkip
    51  		*out = (*in).DeepCopy()
    52  	}
    53  	return
    54  }
    55  
    56  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Brancher.
    57  func (in *Brancher) DeepCopy() *Brancher {
    58  	if in == nil {
    59  		return nil
    60  	}
    61  	out := new(Brancher)
    62  	in.DeepCopyInto(out)
    63  	return out
    64  }
    65  
    66  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CopyableRegexp.
    67  func (in *CopyableRegexp) DeepCopy() *CopyableRegexp {
    68  	if in == nil {
    69  		return nil
    70  	}
    71  	out := new(CopyableRegexp)
    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 *JobBase) DeepCopyInto(out *JobBase) {
    78  	*out = *in
    79  	if in.Labels != nil {
    80  		in, out := &in.Labels, &out.Labels
    81  		*out = make(map[string]string, len(*in))
    82  		for key, val := range *in {
    83  			(*out)[key] = val
    84  		}
    85  	}
    86  	if in.Namespace != nil {
    87  		in, out := &in.Namespace, &out.Namespace
    88  		*out = new(string)
    89  		**out = **in
    90  	}
    91  	if in.Spec != nil {
    92  		in, out := &in.Spec, &out.Spec
    93  		*out = new(v1.PodSpec)
    94  		(*in).DeepCopyInto(*out)
    95  	}
    96  	if in.PipelineRunSpec != nil {
    97  		in, out := &in.PipelineRunSpec, &out.PipelineRunSpec
    98  		*out = new(v1beta1.PipelineRunSpec)
    99  		(*in).DeepCopyInto(*out)
   100  	}
   101  	if in.TektonPipelineRunSpec != nil {
   102  		in, out := &in.TektonPipelineRunSpec, &out.TektonPipelineRunSpec
   103  		*out = new(prowjobsv1.TektonPipelineRunSpec)
   104  		(*in).DeepCopyInto(*out)
   105  	}
   106  	if in.Annotations != nil {
   107  		in, out := &in.Annotations, &out.Annotations
   108  		*out = make(map[string]string, len(*in))
   109  		for key, val := range *in {
   110  			(*out)[key] = val
   111  		}
   112  	}
   113  	if in.ReporterConfig != nil {
   114  		in, out := &in.ReporterConfig, &out.ReporterConfig
   115  		*out = new(prowjobsv1.ReporterConfig)
   116  		(*in).DeepCopyInto(*out)
   117  	}
   118  	if in.RerunAuthConfig != nil {
   119  		in, out := &in.RerunAuthConfig, &out.RerunAuthConfig
   120  		*out = new(prowjobsv1.RerunAuthConfig)
   121  		(*in).DeepCopyInto(*out)
   122  	}
   123  	if in.ProwJobDefault != nil {
   124  		in, out := &in.ProwJobDefault, &out.ProwJobDefault
   125  		*out = new(prowjobsv1.ProwJobDefault)
   126  		(*in).DeepCopyInto(*out)
   127  	}
   128  	in.UtilityConfig.DeepCopyInto(&out.UtilityConfig)
   129  	return
   130  }
   131  
   132  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobBase.
   133  func (in *JobBase) DeepCopy() *JobBase {
   134  	if in == nil {
   135  		return nil
   136  	}
   137  	out := new(JobBase)
   138  	in.DeepCopyInto(out)
   139  	return out
   140  }
   141  
   142  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   143  func (in *Postsubmit) DeepCopyInto(out *Postsubmit) {
   144  	*out = *in
   145  	in.JobBase.DeepCopyInto(&out.JobBase)
   146  	if in.AlwaysRun != nil {
   147  		in, out := &in.AlwaysRun, &out.AlwaysRun
   148  		*out = new(bool)
   149  		**out = **in
   150  	}
   151  	in.RegexpChangeMatcher.DeepCopyInto(&out.RegexpChangeMatcher)
   152  	in.Brancher.DeepCopyInto(&out.Brancher)
   153  	out.Reporter = in.Reporter
   154  	if in.JenkinsSpec != nil {
   155  		in, out := &in.JenkinsSpec, &out.JenkinsSpec
   156  		*out = new(JenkinsSpec)
   157  		**out = **in
   158  	}
   159  	return
   160  }
   161  
   162  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Postsubmit.
   163  func (in *Postsubmit) DeepCopy() *Postsubmit {
   164  	if in == nil {
   165  		return nil
   166  	}
   167  	out := new(Postsubmit)
   168  	in.DeepCopyInto(out)
   169  	return out
   170  }
   171  
   172  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   173  func (in *Preset) DeepCopyInto(out *Preset) {
   174  	*out = *in
   175  	if in.Labels != nil {
   176  		in, out := &in.Labels, &out.Labels
   177  		*out = make(map[string]string, len(*in))
   178  		for key, val := range *in {
   179  			(*out)[key] = val
   180  		}
   181  	}
   182  	if in.Env != nil {
   183  		in, out := &in.Env, &out.Env
   184  		*out = make([]v1.EnvVar, len(*in))
   185  		for i := range *in {
   186  			(*in)[i].DeepCopyInto(&(*out)[i])
   187  		}
   188  	}
   189  	if in.Volumes != nil {
   190  		in, out := &in.Volumes, &out.Volumes
   191  		*out = make([]v1.Volume, len(*in))
   192  		for i := range *in {
   193  			(*in)[i].DeepCopyInto(&(*out)[i])
   194  		}
   195  	}
   196  	if in.VolumeMounts != nil {
   197  		in, out := &in.VolumeMounts, &out.VolumeMounts
   198  		*out = make([]v1.VolumeMount, len(*in))
   199  		for i := range *in {
   200  			(*in)[i].DeepCopyInto(&(*out)[i])
   201  		}
   202  	}
   203  	return
   204  }
   205  
   206  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Preset.
   207  func (in *Preset) DeepCopy() *Preset {
   208  	if in == nil {
   209  		return nil
   210  	}
   211  	out := new(Preset)
   212  	in.DeepCopyInto(out)
   213  	return out
   214  }
   215  
   216  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   217  func (in *Presubmit) DeepCopyInto(out *Presubmit) {
   218  	*out = *in
   219  	in.JobBase.DeepCopyInto(&out.JobBase)
   220  	in.Brancher.DeepCopyInto(&out.Brancher)
   221  	in.RegexpChangeMatcher.DeepCopyInto(&out.RegexpChangeMatcher)
   222  	out.Reporter = in.Reporter
   223  	if in.JenkinsSpec != nil {
   224  		in, out := &in.JenkinsSpec, &out.JenkinsSpec
   225  		*out = new(JenkinsSpec)
   226  		**out = **in
   227  	}
   228  	if in.re != nil {
   229  		in, out := &in.re, &out.re
   230  		*out = (*in).DeepCopy()
   231  	}
   232  	return
   233  }
   234  
   235  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Presubmit.
   236  func (in *Presubmit) DeepCopy() *Presubmit {
   237  	if in == nil {
   238  		return nil
   239  	}
   240  	out := new(Presubmit)
   241  	in.DeepCopyInto(out)
   242  	return out
   243  }
   244  
   245  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   246  func (in *ProwYAML) DeepCopyInto(out *ProwYAML) {
   247  	*out = *in
   248  	if in.Presets != nil {
   249  		in, out := &in.Presets, &out.Presets
   250  		*out = make([]Preset, len(*in))
   251  		for i := range *in {
   252  			(*in)[i].DeepCopyInto(&(*out)[i])
   253  		}
   254  	}
   255  	if in.Presubmits != nil {
   256  		in, out := &in.Presubmits, &out.Presubmits
   257  		*out = make([]Presubmit, len(*in))
   258  		for i := range *in {
   259  			(*in)[i].DeepCopyInto(&(*out)[i])
   260  		}
   261  	}
   262  	if in.Postsubmits != nil {
   263  		in, out := &in.Postsubmits, &out.Postsubmits
   264  		*out = make([]Postsubmit, len(*in))
   265  		for i := range *in {
   266  			(*in)[i].DeepCopyInto(&(*out)[i])
   267  		}
   268  	}
   269  	if in.ProwIgnored != nil {
   270  		in, out := &in.ProwIgnored, &out.ProwIgnored
   271  		*out = new(json.RawMessage)
   272  		if **in != nil {
   273  			in, out := *in, *out
   274  			*out = make([]byte, len(*in))
   275  			copy(*out, *in)
   276  		}
   277  	}
   278  	return
   279  }
   280  
   281  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProwYAML.
   282  func (in *ProwYAML) DeepCopy() *ProwYAML {
   283  	if in == nil {
   284  		return nil
   285  	}
   286  	out := new(ProwYAML)
   287  	in.DeepCopyInto(out)
   288  	return out
   289  }
   290  
   291  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   292  func (in *RegexpChangeMatcher) DeepCopyInto(out *RegexpChangeMatcher) {
   293  	*out = *in
   294  	if in.reChanges != nil {
   295  		in, out := &in.reChanges, &out.reChanges
   296  		*out = (*in).DeepCopy()
   297  	}
   298  	return
   299  }
   300  
   301  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegexpChangeMatcher.
   302  func (in *RegexpChangeMatcher) DeepCopy() *RegexpChangeMatcher {
   303  	if in == nil {
   304  		return nil
   305  	}
   306  	out := new(RegexpChangeMatcher)
   307  	in.DeepCopyInto(out)
   308  	return out
   309  }
   310  
   311  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   312  func (in *UtilityConfig) DeepCopyInto(out *UtilityConfig) {
   313  	*out = *in
   314  	if in.Decorate != nil {
   315  		in, out := &in.Decorate, &out.Decorate
   316  		*out = new(bool)
   317  		**out = **in
   318  	}
   319  	if in.ExtraRefs != nil {
   320  		in, out := &in.ExtraRefs, &out.ExtraRefs
   321  		*out = make([]prowjobsv1.Refs, len(*in))
   322  		for i := range *in {
   323  			(*in)[i].DeepCopyInto(&(*out)[i])
   324  		}
   325  	}
   326  	if in.DecorationConfig != nil {
   327  		in, out := &in.DecorationConfig, &out.DecorationConfig
   328  		*out = new(prowjobsv1.DecorationConfig)
   329  		(*in).DeepCopyInto(*out)
   330  	}
   331  	return
   332  }
   333  
   334  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UtilityConfig.
   335  func (in *UtilityConfig) DeepCopy() *UtilityConfig {
   336  	if in == nil {
   337  		return nil
   338  	}
   339  	out := new(UtilityConfig)
   340  	in.DeepCopyInto(out)
   341  	return out
   342  }