// +build !ignore_autogenerated // Copyright 2020 VEXXHOST, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // Code generated by controller-gen. DO NOT EDIT. package v1 import ( runtime "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/util/intstr" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *NamespaceSelector) DeepCopyInto(out *NamespaceSelector) { *out = *in if in.MatchNames != nil { in, out := &in.MatchNames, &out.MatchNames *out = make([]string, len(*in)) copy(*out, *in) } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceSelector. func (in *NamespaceSelector) DeepCopy() *NamespaceSelector { if in == nil { return nil } out := new(NamespaceSelector) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PodMetricsEndpoint) DeepCopyInto(out *PodMetricsEndpoint) { *out = *in if in.TargetPort != nil { in, out := &in.TargetPort, &out.TargetPort *out = new(intstr.IntOrString) **out = **in } if in.Params != nil { in, out := &in.Params, &out.Params *out = make(map[string][]string, len(*in)) for key, val := range *in { var outVal []string if val == nil { (*out)[key] = nil } else { in, out := &val, &outVal *out = make([]string, len(*in)) copy(*out, *in) } (*out)[key] = outVal } } if in.HonorTimestamps != nil { in, out := &in.HonorTimestamps, &out.HonorTimestamps *out = new(bool) **out = **in } if in.MetricRelabelConfigs != nil { in, out := &in.MetricRelabelConfigs, &out.MetricRelabelConfigs *out = make([]*RelabelConfig, len(*in)) for i := range *in { if (*in)[i] != nil { in, out := &(*in)[i], &(*out)[i] *out = new(RelabelConfig) (*in).DeepCopyInto(*out) } } } if in.RelabelConfigs != nil { in, out := &in.RelabelConfigs, &out.RelabelConfigs *out = make([]*RelabelConfig, len(*in)) for i := range *in { if (*in)[i] != nil { in, out := &(*in)[i], &(*out)[i] *out = new(RelabelConfig) (*in).DeepCopyInto(*out) } } } if in.ProxyURL != nil { in, out := &in.ProxyURL, &out.ProxyURL *out = new(string) **out = **in } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodMetricsEndpoint. func (in *PodMetricsEndpoint) DeepCopy() *PodMetricsEndpoint { if in == nil { return nil } out := new(PodMetricsEndpoint) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PodMonitor) DeepCopyInto(out *PodMonitor) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodMonitor. func (in *PodMonitor) DeepCopy() *PodMonitor { if in == nil { return nil } out := new(PodMonitor) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *PodMonitor) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PodMonitorList) DeepCopyInto(out *PodMonitorList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]*PodMonitor, len(*in)) for i := range *in { if (*in)[i] != nil { in, out := &(*in)[i], &(*out)[i] *out = new(PodMonitor) (*in).DeepCopyInto(*out) } } } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodMonitorList. func (in *PodMonitorList) DeepCopy() *PodMonitorList { if in == nil { return nil } out := new(PodMonitorList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *PodMonitorList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PodMonitorSpec) DeepCopyInto(out *PodMonitorSpec) { *out = *in if in.PodTargetLabels != nil { in, out := &in.PodTargetLabels, &out.PodTargetLabels *out = make([]string, len(*in)) copy(*out, *in) } if in.PodMetricsEndpoints != nil { in, out := &in.PodMetricsEndpoints, &out.PodMetricsEndpoints *out = make([]PodMetricsEndpoint, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } in.Selector.DeepCopyInto(&out.Selector) in.NamespaceSelector.DeepCopyInto(&out.NamespaceSelector) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodMonitorSpec. func (in *PodMonitorSpec) DeepCopy() *PodMonitorSpec { if in == nil { return nil } out := new(PodMonitorSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PrometheusRule) DeepCopyInto(out *PrometheusRule) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrometheusRule. func (in *PrometheusRule) DeepCopy() *PrometheusRule { if in == nil { return nil } out := new(PrometheusRule) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *PrometheusRule) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PrometheusRuleList) DeepCopyInto(out *PrometheusRuleList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]*PrometheusRule, len(*in)) for i := range *in { if (*in)[i] != nil { in, out := &(*in)[i], &(*out)[i] *out = new(PrometheusRule) (*in).DeepCopyInto(*out) } } } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrometheusRuleList. func (in *PrometheusRuleList) DeepCopy() *PrometheusRuleList { if in == nil { return nil } out := new(PrometheusRuleList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *PrometheusRuleList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PrometheusRuleSpec) DeepCopyInto(out *PrometheusRuleSpec) { *out = *in if in.Groups != nil { in, out := &in.Groups, &out.Groups *out = make([]RuleGroup, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrometheusRuleSpec. func (in *PrometheusRuleSpec) DeepCopy() *PrometheusRuleSpec { if in == nil { return nil } out := new(PrometheusRuleSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *RelabelConfig) DeepCopyInto(out *RelabelConfig) { *out = *in if in.SourceLabels != nil { in, out := &in.SourceLabels, &out.SourceLabels *out = make([]string, len(*in)) copy(*out, *in) } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RelabelConfig. func (in *RelabelConfig) DeepCopy() *RelabelConfig { if in == nil { return nil } out := new(RelabelConfig) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Rule) DeepCopyInto(out *Rule) { *out = *in out.Expr = in.Expr if in.Labels != nil { in, out := &in.Labels, &out.Labels *out = make(map[string]string, len(*in)) for key, val := range *in { (*out)[key] = val } } if in.Annotations != nil { in, out := &in.Annotations, &out.Annotations *out = make(map[string]string, len(*in)) for key, val := range *in { (*out)[key] = val } } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rule. func (in *Rule) DeepCopy() *Rule { if in == nil { return nil } out := new(Rule) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *RuleGroup) DeepCopyInto(out *RuleGroup) { *out = *in if in.Rules != nil { in, out := &in.Rules, &out.Rules *out = make([]Rule, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleGroup. func (in *RuleGroup) DeepCopy() *RuleGroup { if in == nil { return nil } out := new(RuleGroup) in.DeepCopyInto(out) return out }