github.com/banzaicloud/operator-tools@v0.28.10/pkg/prometheus/zz_generated.deepcopy.go (about)

     1  //go:build !ignore_autogenerated
     2  // +build !ignore_autogenerated
     3  
     4  // Copyright © 2020 Banzai Cloud
     5  //
     6  // Licensed under the Apache License, Version 2.0 (the "License");
     7  // you may not use this file except in compliance with the License.
     8  // You may obtain a copy of the License at
     9  //
    10  //    http://www.apache.org/licenses/LICENSE-2.0
    11  //
    12  // Unless required by applicable law or agreed to in writing, software
    13  // distributed under the License is distributed on an "AS IS" BASIS,
    14  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    15  // See the License for the specific language governing permissions and
    16  // limitations under the License.
    17  
    18  // Code generated by controller-gen. DO NOT EDIT.
    19  
    20  package prometheus
    21  
    22  import (
    23  	runtime "k8s.io/apimachinery/pkg/runtime"
    24  	"k8s.io/apimachinery/pkg/util/intstr"
    25  )
    26  
    27  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    28  func (in *BasicAuth) DeepCopyInto(out *BasicAuth) {
    29  	*out = *in
    30  	in.Username.DeepCopyInto(&out.Username)
    31  	in.Password.DeepCopyInto(&out.Password)
    32  }
    33  
    34  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BasicAuth.
    35  func (in *BasicAuth) DeepCopy() *BasicAuth {
    36  	if in == nil {
    37  		return nil
    38  	}
    39  	out := new(BasicAuth)
    40  	in.DeepCopyInto(out)
    41  	return out
    42  }
    43  
    44  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    45  func (in *Endpoint) DeepCopyInto(out *Endpoint) {
    46  	*out = *in
    47  	if in.TargetPort != nil {
    48  		in, out := &in.TargetPort, &out.TargetPort
    49  		*out = new(intstr.IntOrString)
    50  		**out = **in
    51  	}
    52  	if in.Params != nil {
    53  		in, out := &in.Params, &out.Params
    54  		*out = make(map[string][]string, len(*in))
    55  		for key, val := range *in {
    56  			var outVal []string
    57  			if val == nil {
    58  				(*out)[key] = nil
    59  			} else {
    60  				in, out := &val, &outVal
    61  				*out = make([]string, len(*in))
    62  				copy(*out, *in)
    63  			}
    64  			(*out)[key] = outVal
    65  		}
    66  	}
    67  	if in.TLSConfig != nil {
    68  		in, out := &in.TLSConfig, &out.TLSConfig
    69  		*out = new(TLSConfig)
    70  		**out = **in
    71  	}
    72  	if in.BasicAuth != nil {
    73  		in, out := &in.BasicAuth, &out.BasicAuth
    74  		*out = new(BasicAuth)
    75  		(*in).DeepCopyInto(*out)
    76  	}
    77  	if in.MetricRelabelConfigs != nil {
    78  		in, out := &in.MetricRelabelConfigs, &out.MetricRelabelConfigs
    79  		*out = make([]*RelabelConfig, len(*in))
    80  		for i := range *in {
    81  			if (*in)[i] != nil {
    82  				in, out := &(*in)[i], &(*out)[i]
    83  				*out = new(RelabelConfig)
    84  				(*in).DeepCopyInto(*out)
    85  			}
    86  		}
    87  	}
    88  	if in.RelabelConfigs != nil {
    89  		in, out := &in.RelabelConfigs, &out.RelabelConfigs
    90  		*out = make([]*RelabelConfig, len(*in))
    91  		for i := range *in {
    92  			if (*in)[i] != nil {
    93  				in, out := &(*in)[i], &(*out)[i]
    94  				*out = new(RelabelConfig)
    95  				(*in).DeepCopyInto(*out)
    96  			}
    97  		}
    98  	}
    99  	if in.ProxyURL != nil {
   100  		in, out := &in.ProxyURL, &out.ProxyURL
   101  		*out = new(string)
   102  		**out = **in
   103  	}
   104  }
   105  
   106  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Endpoint.
   107  func (in *Endpoint) DeepCopy() *Endpoint {
   108  	if in == nil {
   109  		return nil
   110  	}
   111  	out := new(Endpoint)
   112  	in.DeepCopyInto(out)
   113  	return out
   114  }
   115  
   116  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   117  func (in *NamespaceSelector) DeepCopyInto(out *NamespaceSelector) {
   118  	*out = *in
   119  	if in.MatchNames != nil {
   120  		in, out := &in.MatchNames, &out.MatchNames
   121  		*out = make([]string, len(*in))
   122  		copy(*out, *in)
   123  	}
   124  }
   125  
   126  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceSelector.
   127  func (in *NamespaceSelector) DeepCopy() *NamespaceSelector {
   128  	if in == nil {
   129  		return nil
   130  	}
   131  	out := new(NamespaceSelector)
   132  	in.DeepCopyInto(out)
   133  	return out
   134  }
   135  
   136  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   137  func (in *RelabelConfig) DeepCopyInto(out *RelabelConfig) {
   138  	*out = *in
   139  	if in.SourceLabels != nil {
   140  		in, out := &in.SourceLabels, &out.SourceLabels
   141  		*out = make([]string, len(*in))
   142  		copy(*out, *in)
   143  	}
   144  }
   145  
   146  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RelabelConfig.
   147  func (in *RelabelConfig) DeepCopy() *RelabelConfig {
   148  	if in == nil {
   149  		return nil
   150  	}
   151  	out := new(RelabelConfig)
   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 *ServiceMonitor) DeepCopyInto(out *ServiceMonitor) {
   158  	*out = *in
   159  	out.TypeMeta = in.TypeMeta
   160  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
   161  	in.Spec.DeepCopyInto(&out.Spec)
   162  }
   163  
   164  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceMonitor.
   165  func (in *ServiceMonitor) DeepCopy() *ServiceMonitor {
   166  	if in == nil {
   167  		return nil
   168  	}
   169  	out := new(ServiceMonitor)
   170  	in.DeepCopyInto(out)
   171  	return out
   172  }
   173  
   174  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   175  func (in *ServiceMonitor) DeepCopyObject() runtime.Object {
   176  	if c := in.DeepCopy(); c != nil {
   177  		return c
   178  	}
   179  	return nil
   180  }
   181  
   182  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   183  func (in *ServiceMonitorList) DeepCopyInto(out *ServiceMonitorList) {
   184  	*out = *in
   185  	out.TypeMeta = in.TypeMeta
   186  	in.ListMeta.DeepCopyInto(&out.ListMeta)
   187  	if in.Items != nil {
   188  		in, out := &in.Items, &out.Items
   189  		*out = make([]*ServiceMonitor, len(*in))
   190  		for i := range *in {
   191  			if (*in)[i] != nil {
   192  				in, out := &(*in)[i], &(*out)[i]
   193  				*out = new(ServiceMonitor)
   194  				(*in).DeepCopyInto(*out)
   195  			}
   196  		}
   197  	}
   198  }
   199  
   200  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceMonitorList.
   201  func (in *ServiceMonitorList) DeepCopy() *ServiceMonitorList {
   202  	if in == nil {
   203  		return nil
   204  	}
   205  	out := new(ServiceMonitorList)
   206  	in.DeepCopyInto(out)
   207  	return out
   208  }
   209  
   210  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   211  func (in *ServiceMonitorList) DeepCopyObject() runtime.Object {
   212  	if c := in.DeepCopy(); c != nil {
   213  		return c
   214  	}
   215  	return nil
   216  }
   217  
   218  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   219  func (in *ServiceMonitorSpec) DeepCopyInto(out *ServiceMonitorSpec) {
   220  	*out = *in
   221  	if in.TargetLabels != nil {
   222  		in, out := &in.TargetLabels, &out.TargetLabels
   223  		*out = make([]string, len(*in))
   224  		copy(*out, *in)
   225  	}
   226  	if in.PodTargetLabels != nil {
   227  		in, out := &in.PodTargetLabels, &out.PodTargetLabels
   228  		*out = make([]string, len(*in))
   229  		copy(*out, *in)
   230  	}
   231  	if in.Endpoints != nil {
   232  		in, out := &in.Endpoints, &out.Endpoints
   233  		*out = make([]Endpoint, len(*in))
   234  		for i := range *in {
   235  			(*in)[i].DeepCopyInto(&(*out)[i])
   236  		}
   237  	}
   238  	in.Selector.DeepCopyInto(&out.Selector)
   239  	in.NamespaceSelector.DeepCopyInto(&out.NamespaceSelector)
   240  }
   241  
   242  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceMonitorSpec.
   243  func (in *ServiceMonitorSpec) DeepCopy() *ServiceMonitorSpec {
   244  	if in == nil {
   245  		return nil
   246  	}
   247  	out := new(ServiceMonitorSpec)
   248  	in.DeepCopyInto(out)
   249  	return out
   250  }
   251  
   252  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   253  func (in *TLSConfig) DeepCopyInto(out *TLSConfig) {
   254  	*out = *in
   255  }
   256  
   257  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLSConfig.
   258  func (in *TLSConfig) DeepCopy() *TLSConfig {
   259  	if in == nil {
   260  		return nil
   261  	}
   262  	out := new(TLSConfig)
   263  	in.DeepCopyInto(out)
   264  	return out
   265  }