1 // +build !ignore_autogenerated
3 // Copyright 2018 The prometheus-operator Authors
5 // Licensed under the Apache License, Version 2.0 (the "License");
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
17 // Code generated by deepcopy-gen. DO NOT EDIT.
22 corev1 "k8s.io/api/core/v1"
23 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
24 intstr "k8s.io/apimachinery/pkg/util/intstr"
27 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
28 func (in *APIServerConfig) DeepCopyInto(out *APIServerConfig) {
30 if in.BasicAuth != nil {
31 in, out := &in.BasicAuth, &out.BasicAuth
33 (*in).DeepCopyInto(*out)
35 if in.TLSConfig != nil {
36 in, out := &in.TLSConfig, &out.TLSConfig
43 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIServerConfig.
44 func (in *APIServerConfig) DeepCopy() *APIServerConfig {
48 out := new(APIServerConfig)
53 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
54 func (in *AlertingSpec) DeepCopyInto(out *AlertingSpec) {
56 if in.Alertmanagers != nil {
57 in, out := &in.Alertmanagers, &out.Alertmanagers
58 *out = make([]AlertmanagerEndpoints, len(*in))
60 (*in)[i].DeepCopyInto(&(*out)[i])
66 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertingSpec.
67 func (in *AlertingSpec) DeepCopy() *AlertingSpec {
71 out := new(AlertingSpec)
76 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
77 func (in *Alertmanager) DeepCopyInto(out *Alertmanager) {
79 out.TypeMeta = in.TypeMeta
80 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
81 in.Spec.DeepCopyInto(&out.Spec)
83 in, out := &in.Status, &out.Status
84 *out = new(AlertmanagerStatus)
90 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Alertmanager.
91 func (in *Alertmanager) DeepCopy() *Alertmanager {
95 out := new(Alertmanager)
100 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
101 func (in *AlertmanagerEndpoints) DeepCopyInto(out *AlertmanagerEndpoints) {
104 if in.TLSConfig != nil {
105 in, out := &in.TLSConfig, &out.TLSConfig
106 *out = new(TLSConfig)
112 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertmanagerEndpoints.
113 func (in *AlertmanagerEndpoints) DeepCopy() *AlertmanagerEndpoints {
117 out := new(AlertmanagerEndpoints)
122 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
123 func (in *AlertmanagerList) DeepCopyInto(out *AlertmanagerList) {
125 out.TypeMeta = in.TypeMeta
126 out.ListMeta = in.ListMeta
128 in, out := &in.Items, &out.Items
129 *out = make([]Alertmanager, len(*in))
131 (*in)[i].DeepCopyInto(&(*out)[i])
137 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertmanagerList.
138 func (in *AlertmanagerList) DeepCopy() *AlertmanagerList {
142 out := new(AlertmanagerList)
147 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
148 func (in *AlertmanagerSpec) DeepCopyInto(out *AlertmanagerSpec) {
150 if in.PodMetadata != nil {
151 in, out := &in.PodMetadata, &out.PodMetadata
152 *out = new(metav1.ObjectMeta)
153 (*in).DeepCopyInto(*out)
156 in, out := &in.Image, &out.Image
160 if in.ImagePullSecrets != nil {
161 in, out := &in.ImagePullSecrets, &out.ImagePullSecrets
162 *out = make([]corev1.LocalObjectReference, len(*in))
165 if in.Secrets != nil {
166 in, out := &in.Secrets, &out.Secrets
167 *out = make([]string, len(*in))
170 if in.ConfigMaps != nil {
171 in, out := &in.ConfigMaps, &out.ConfigMaps
172 *out = make([]string, len(*in))
175 if in.Replicas != nil {
176 in, out := &in.Replicas, &out.Replicas
180 if in.Storage != nil {
181 in, out := &in.Storage, &out.Storage
182 *out = new(StorageSpec)
183 (*in).DeepCopyInto(*out)
185 if in.NodeSelector != nil {
186 in, out := &in.NodeSelector, &out.NodeSelector
187 *out = make(map[string]string, len(*in))
188 for key, val := range *in {
192 in.Resources.DeepCopyInto(&out.Resources)
193 if in.Affinity != nil {
194 in, out := &in.Affinity, &out.Affinity
195 *out = new(corev1.Affinity)
196 (*in).DeepCopyInto(*out)
198 if in.Tolerations != nil {
199 in, out := &in.Tolerations, &out.Tolerations
200 *out = make([]corev1.Toleration, len(*in))
202 (*in)[i].DeepCopyInto(&(*out)[i])
205 if in.SecurityContext != nil {
206 in, out := &in.SecurityContext, &out.SecurityContext
207 *out = new(corev1.PodSecurityContext)
208 (*in).DeepCopyInto(*out)
210 if in.Containers != nil {
211 in, out := &in.Containers, &out.Containers
212 *out = make([]corev1.Container, len(*in))
214 (*in)[i].DeepCopyInto(&(*out)[i])
217 if in.AdditionalPeers != nil {
218 in, out := &in.AdditionalPeers, &out.AdditionalPeers
219 *out = make([]string, len(*in))
225 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertmanagerSpec.
226 func (in *AlertmanagerSpec) DeepCopy() *AlertmanagerSpec {
230 out := new(AlertmanagerSpec)
235 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
236 func (in *AlertmanagerStatus) DeepCopyInto(out *AlertmanagerStatus) {
241 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertmanagerStatus.
242 func (in *AlertmanagerStatus) DeepCopy() *AlertmanagerStatus {
246 out := new(AlertmanagerStatus)
251 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
252 func (in *BasicAuth) DeepCopyInto(out *BasicAuth) {
254 in.Username.DeepCopyInto(&out.Username)
255 in.Password.DeepCopyInto(&out.Password)
259 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BasicAuth.
260 func (in *BasicAuth) DeepCopy() *BasicAuth {
264 out := new(BasicAuth)
269 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
270 func (in *CrdKind) DeepCopyInto(out *CrdKind) {
275 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CrdKind.
276 func (in *CrdKind) DeepCopy() *CrdKind {
285 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
286 func (in *CrdKinds) DeepCopyInto(out *CrdKinds) {
288 out.Prometheus = in.Prometheus
289 out.Alertmanager = in.Alertmanager
290 out.ServiceMonitor = in.ServiceMonitor
291 out.PrometheusRule = in.PrometheusRule
295 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CrdKinds.
296 func (in *CrdKinds) DeepCopy() *CrdKinds {
305 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
306 func (in *Endpoint) DeepCopyInto(out *Endpoint) {
308 if in.TargetPort != nil {
309 in, out := &in.TargetPort, &out.TargetPort
310 *out = new(intstr.IntOrString)
313 if in.Params != nil {
314 in, out := &in.Params, &out.Params
315 *out = make(map[string][]string, len(*in))
316 for key, val := range *in {
321 in, out := &val, &outVal
322 *out = make([]string, len(*in))
328 if in.TLSConfig != nil {
329 in, out := &in.TLSConfig, &out.TLSConfig
330 *out = new(TLSConfig)
333 if in.BasicAuth != nil {
334 in, out := &in.BasicAuth, &out.BasicAuth
335 *out = new(BasicAuth)
336 (*in).DeepCopyInto(*out)
338 if in.MetricRelabelConfigs != nil {
339 in, out := &in.MetricRelabelConfigs, &out.MetricRelabelConfigs
340 *out = make([]*RelabelConfig, len(*in))
343 in, out := &(*in)[i], &(*out)[i]
344 *out = new(RelabelConfig)
345 (*in).DeepCopyInto(*out)
349 if in.RelabelConfigs != nil {
350 in, out := &in.RelabelConfigs, &out.RelabelConfigs
351 *out = make([]*RelabelConfig, len(*in))
354 in, out := &(*in)[i], &(*out)[i]
355 *out = new(RelabelConfig)
356 (*in).DeepCopyInto(*out)
360 if in.ProxyURL != nil {
361 in, out := &in.ProxyURL, &out.ProxyURL
368 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Endpoint.
369 func (in *Endpoint) DeepCopy() *Endpoint {
378 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
379 func (in *NamespaceSelector) DeepCopyInto(out *NamespaceSelector) {
381 if in.MatchNames != nil {
382 in, out := &in.MatchNames, &out.MatchNames
383 *out = make([]string, len(*in))
389 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceSelector.
390 func (in *NamespaceSelector) DeepCopy() *NamespaceSelector {
394 out := new(NamespaceSelector)
399 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
400 func (in *Prometheus) DeepCopyInto(out *Prometheus) {
402 out.TypeMeta = in.TypeMeta
403 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
404 in.Spec.DeepCopyInto(&out.Spec)
405 if in.Status != nil {
406 in, out := &in.Status, &out.Status
407 *out = new(PrometheusStatus)
413 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Prometheus.
414 func (in *Prometheus) DeepCopy() *Prometheus {
418 out := new(Prometheus)
423 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
424 func (in *PrometheusList) DeepCopyInto(out *PrometheusList) {
426 out.TypeMeta = in.TypeMeta
427 out.ListMeta = in.ListMeta
429 in, out := &in.Items, &out.Items
430 *out = make([]*Prometheus, len(*in))
433 in, out := &(*in)[i], &(*out)[i]
434 *out = new(Prometheus)
435 (*in).DeepCopyInto(*out)
442 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrometheusList.
443 func (in *PrometheusList) DeepCopy() *PrometheusList {
447 out := new(PrometheusList)
452 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
453 func (in *PrometheusRule) DeepCopyInto(out *PrometheusRule) {
455 out.TypeMeta = in.TypeMeta
456 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
457 in.Spec.DeepCopyInto(&out.Spec)
461 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrometheusRule.
462 func (in *PrometheusRule) DeepCopy() *PrometheusRule {
466 out := new(PrometheusRule)
471 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
472 func (in *PrometheusRuleList) DeepCopyInto(out *PrometheusRuleList) {
474 out.TypeMeta = in.TypeMeta
475 out.ListMeta = in.ListMeta
477 in, out := &in.Items, &out.Items
478 *out = make([]*PrometheusRule, len(*in))
481 in, out := &(*in)[i], &(*out)[i]
482 *out = new(PrometheusRule)
483 (*in).DeepCopyInto(*out)
490 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrometheusRuleList.
491 func (in *PrometheusRuleList) DeepCopy() *PrometheusRuleList {
495 out := new(PrometheusRuleList)
500 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
501 func (in *PrometheusRuleSpec) DeepCopyInto(out *PrometheusRuleSpec) {
503 if in.Groups != nil {
504 in, out := &in.Groups, &out.Groups
505 *out = make([]RuleGroup, len(*in))
507 (*in)[i].DeepCopyInto(&(*out)[i])
513 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrometheusRuleSpec.
514 func (in *PrometheusRuleSpec) DeepCopy() *PrometheusRuleSpec {
518 out := new(PrometheusRuleSpec)
523 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
524 func (in *PrometheusSpec) DeepCopyInto(out *PrometheusSpec) {
526 if in.PodMetadata != nil {
527 in, out := &in.PodMetadata, &out.PodMetadata
528 *out = new(metav1.ObjectMeta)
529 (*in).DeepCopyInto(*out)
531 if in.ServiceMonitorSelector != nil {
532 in, out := &in.ServiceMonitorSelector, &out.ServiceMonitorSelector
533 *out = new(metav1.LabelSelector)
534 (*in).DeepCopyInto(*out)
536 if in.ServiceMonitorNamespaceSelector != nil {
537 in, out := &in.ServiceMonitorNamespaceSelector, &out.ServiceMonitorNamespaceSelector
538 *out = new(metav1.LabelSelector)
539 (*in).DeepCopyInto(*out)
542 in, out := &in.Image, &out.Image
546 if in.ImagePullSecrets != nil {
547 in, out := &in.ImagePullSecrets, &out.ImagePullSecrets
548 *out = make([]corev1.LocalObjectReference, len(*in))
551 if in.Replicas != nil {
552 in, out := &in.Replicas, &out.Replicas
557 if in.ExternalLabels != nil {
558 in, out := &in.ExternalLabels, &out.ExternalLabels
559 *out = make(map[string]string, len(*in))
560 for key, val := range *in {
565 in, out := &in.Query, &out.Query
566 *out = new(QuerySpec)
567 (*in).DeepCopyInto(*out)
569 if in.Storage != nil {
570 in, out := &in.Storage, &out.Storage
571 *out = new(StorageSpec)
572 (*in).DeepCopyInto(*out)
574 if in.RuleSelector != nil {
575 in, out := &in.RuleSelector, &out.RuleSelector
576 *out = new(metav1.LabelSelector)
577 (*in).DeepCopyInto(*out)
579 if in.RuleNamespaceSelector != nil {
580 in, out := &in.RuleNamespaceSelector, &out.RuleNamespaceSelector
581 *out = new(metav1.LabelSelector)
582 (*in).DeepCopyInto(*out)
584 if in.Alerting != nil {
585 in, out := &in.Alerting, &out.Alerting
586 *out = new(AlertingSpec)
587 (*in).DeepCopyInto(*out)
589 in.Resources.DeepCopyInto(&out.Resources)
590 if in.NodeSelector != nil {
591 in, out := &in.NodeSelector, &out.NodeSelector
592 *out = make(map[string]string, len(*in))
593 for key, val := range *in {
597 if in.Secrets != nil {
598 in, out := &in.Secrets, &out.Secrets
599 *out = make([]string, len(*in))
602 if in.ConfigMaps != nil {
603 in, out := &in.ConfigMaps, &out.ConfigMaps
604 *out = make([]string, len(*in))
607 if in.Affinity != nil {
608 in, out := &in.Affinity, &out.Affinity
609 *out = new(corev1.Affinity)
610 (*in).DeepCopyInto(*out)
612 if in.Tolerations != nil {
613 in, out := &in.Tolerations, &out.Tolerations
614 *out = make([]corev1.Toleration, len(*in))
616 (*in)[i].DeepCopyInto(&(*out)[i])
619 if in.RemoteWrite != nil {
620 in, out := &in.RemoteWrite, &out.RemoteWrite
621 *out = make([]RemoteWriteSpec, len(*in))
623 (*in)[i].DeepCopyInto(&(*out)[i])
626 if in.RemoteRead != nil {
627 in, out := &in.RemoteRead, &out.RemoteRead
628 *out = make([]RemoteReadSpec, len(*in))
630 (*in)[i].DeepCopyInto(&(*out)[i])
633 if in.SecurityContext != nil {
634 in, out := &in.SecurityContext, &out.SecurityContext
635 *out = new(corev1.PodSecurityContext)
636 (*in).DeepCopyInto(*out)
638 if in.Containers != nil {
639 in, out := &in.Containers, &out.Containers
640 *out = make([]corev1.Container, len(*in))
642 (*in)[i].DeepCopyInto(&(*out)[i])
645 if in.AdditionalScrapeConfigs != nil {
646 in, out := &in.AdditionalScrapeConfigs, &out.AdditionalScrapeConfigs
647 *out = new(corev1.SecretKeySelector)
648 (*in).DeepCopyInto(*out)
650 if in.AdditionalAlertRelabelConfigs != nil {
651 in, out := &in.AdditionalAlertRelabelConfigs, &out.AdditionalAlertRelabelConfigs
652 *out = new(corev1.SecretKeySelector)
653 (*in).DeepCopyInto(*out)
655 if in.AdditionalAlertManagerConfigs != nil {
656 in, out := &in.AdditionalAlertManagerConfigs, &out.AdditionalAlertManagerConfigs
657 *out = new(corev1.SecretKeySelector)
658 (*in).DeepCopyInto(*out)
660 if in.APIServerConfig != nil {
661 in, out := &in.APIServerConfig, &out.APIServerConfig
662 *out = new(APIServerConfig)
663 (*in).DeepCopyInto(*out)
665 if in.Thanos != nil {
666 in, out := &in.Thanos, &out.Thanos
667 *out = new(ThanosSpec)
668 (*in).DeepCopyInto(*out)
673 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrometheusSpec.
674 func (in *PrometheusSpec) DeepCopy() *PrometheusSpec {
678 out := new(PrometheusSpec)
683 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
684 func (in *PrometheusStatus) DeepCopyInto(out *PrometheusStatus) {
689 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrometheusStatus.
690 func (in *PrometheusStatus) DeepCopy() *PrometheusStatus {
694 out := new(PrometheusStatus)
699 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
700 func (in *QuerySpec) DeepCopyInto(out *QuerySpec) {
702 if in.LookbackDelta != nil {
703 in, out := &in.LookbackDelta, &out.LookbackDelta
707 if in.MaxConcurrency != nil {
708 in, out := &in.MaxConcurrency, &out.MaxConcurrency
712 if in.Timeout != nil {
713 in, out := &in.Timeout, &out.Timeout
720 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QuerySpec.
721 func (in *QuerySpec) DeepCopy() *QuerySpec {
725 out := new(QuerySpec)
730 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
731 func (in *QueueConfig) DeepCopyInto(out *QueueConfig) {
736 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueueConfig.
737 func (in *QueueConfig) DeepCopy() *QueueConfig {
741 out := new(QueueConfig)
746 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
747 func (in *RelabelConfig) DeepCopyInto(out *RelabelConfig) {
749 if in.SourceLabels != nil {
750 in, out := &in.SourceLabels, &out.SourceLabels
751 *out = make([]string, len(*in))
757 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RelabelConfig.
758 func (in *RelabelConfig) DeepCopy() *RelabelConfig {
762 out := new(RelabelConfig)
767 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
768 func (in *RemoteReadSpec) DeepCopyInto(out *RemoteReadSpec) {
770 if in.RequiredMatchers != nil {
771 in, out := &in.RequiredMatchers, &out.RequiredMatchers
772 *out = make(map[string]string, len(*in))
773 for key, val := range *in {
777 if in.BasicAuth != nil {
778 in, out := &in.BasicAuth, &out.BasicAuth
779 *out = new(BasicAuth)
780 (*in).DeepCopyInto(*out)
782 if in.TLSConfig != nil {
783 in, out := &in.TLSConfig, &out.TLSConfig
784 *out = new(TLSConfig)
790 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RemoteReadSpec.
791 func (in *RemoteReadSpec) DeepCopy() *RemoteReadSpec {
795 out := new(RemoteReadSpec)
800 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
801 func (in *RemoteWriteSpec) DeepCopyInto(out *RemoteWriteSpec) {
803 if in.WriteRelabelConfigs != nil {
804 in, out := &in.WriteRelabelConfigs, &out.WriteRelabelConfigs
805 *out = make([]RelabelConfig, len(*in))
807 (*in)[i].DeepCopyInto(&(*out)[i])
810 if in.BasicAuth != nil {
811 in, out := &in.BasicAuth, &out.BasicAuth
812 *out = new(BasicAuth)
813 (*in).DeepCopyInto(*out)
815 if in.TLSConfig != nil {
816 in, out := &in.TLSConfig, &out.TLSConfig
817 *out = new(TLSConfig)
820 if in.QueueConfig != nil {
821 in, out := &in.QueueConfig, &out.QueueConfig
822 *out = new(QueueConfig)
828 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RemoteWriteSpec.
829 func (in *RemoteWriteSpec) DeepCopy() *RemoteWriteSpec {
833 out := new(RemoteWriteSpec)
838 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
839 func (in *Rule) DeepCopyInto(out *Rule) {
842 if in.Labels != nil {
843 in, out := &in.Labels, &out.Labels
844 *out = make(map[string]string, len(*in))
845 for key, val := range *in {
849 if in.Annotations != nil {
850 in, out := &in.Annotations, &out.Annotations
851 *out = make(map[string]string, len(*in))
852 for key, val := range *in {
859 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rule.
860 func (in *Rule) DeepCopy() *Rule {
869 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
870 func (in *RuleGroup) DeepCopyInto(out *RuleGroup) {
873 in, out := &in.Rules, &out.Rules
874 *out = make([]Rule, len(*in))
876 (*in)[i].DeepCopyInto(&(*out)[i])
882 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleGroup.
883 func (in *RuleGroup) DeepCopy() *RuleGroup {
887 out := new(RuleGroup)
892 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
893 func (in *Rules) DeepCopyInto(out *Rules) {
899 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rules.
900 func (in *Rules) DeepCopy() *Rules {
909 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
910 func (in *RulesAlert) DeepCopyInto(out *RulesAlert) {
915 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RulesAlert.
916 func (in *RulesAlert) DeepCopy() *RulesAlert {
920 out := new(RulesAlert)
925 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
926 func (in *ServiceMonitor) DeepCopyInto(out *ServiceMonitor) {
928 out.TypeMeta = in.TypeMeta
929 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
930 in.Spec.DeepCopyInto(&out.Spec)
934 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceMonitor.
935 func (in *ServiceMonitor) DeepCopy() *ServiceMonitor {
939 out := new(ServiceMonitor)
944 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
945 func (in *ServiceMonitorList) DeepCopyInto(out *ServiceMonitorList) {
947 out.TypeMeta = in.TypeMeta
948 out.ListMeta = in.ListMeta
950 in, out := &in.Items, &out.Items
951 *out = make([]*ServiceMonitor, len(*in))
954 in, out := &(*in)[i], &(*out)[i]
955 *out = new(ServiceMonitor)
956 (*in).DeepCopyInto(*out)
963 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceMonitorList.
964 func (in *ServiceMonitorList) DeepCopy() *ServiceMonitorList {
968 out := new(ServiceMonitorList)
973 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
974 func (in *ServiceMonitorSpec) DeepCopyInto(out *ServiceMonitorSpec) {
976 if in.TargetLabels != nil {
977 in, out := &in.TargetLabels, &out.TargetLabels
978 *out = make([]string, len(*in))
981 if in.PodTargetLabels != nil {
982 in, out := &in.PodTargetLabels, &out.PodTargetLabels
983 *out = make([]string, len(*in))
986 if in.Endpoints != nil {
987 in, out := &in.Endpoints, &out.Endpoints
988 *out = make([]Endpoint, len(*in))
990 (*in)[i].DeepCopyInto(&(*out)[i])
993 in.Selector.DeepCopyInto(&out.Selector)
994 in.NamespaceSelector.DeepCopyInto(&out.NamespaceSelector)
998 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceMonitorSpec.
999 func (in *ServiceMonitorSpec) DeepCopy() *ServiceMonitorSpec {
1003 out := new(ServiceMonitorSpec)
1004 in.DeepCopyInto(out)
1008 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
1009 func (in *StorageSpec) DeepCopyInto(out *StorageSpec) {
1011 if in.EmptyDir != nil {
1012 in, out := &in.EmptyDir, &out.EmptyDir
1013 *out = new(corev1.EmptyDirVolumeSource)
1014 (*in).DeepCopyInto(*out)
1016 in.VolumeClaimTemplate.DeepCopyInto(&out.VolumeClaimTemplate)
1020 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageSpec.
1021 func (in *StorageSpec) DeepCopy() *StorageSpec {
1025 out := new(StorageSpec)
1026 in.DeepCopyInto(out)
1030 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
1031 func (in *TLSConfig) DeepCopyInto(out *TLSConfig) {
1036 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLSConfig.
1037 func (in *TLSConfig) DeepCopy() *TLSConfig {
1041 out := new(TLSConfig)
1042 in.DeepCopyInto(out)
1046 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
1047 func (in *ThanosGCSSpec) DeepCopyInto(out *ThanosGCSSpec) {
1049 if in.Bucket != nil {
1050 in, out := &in.Bucket, &out.Bucket
1054 if in.SecretKey != nil {
1055 in, out := &in.SecretKey, &out.SecretKey
1056 *out = new(corev1.SecretKeySelector)
1057 (*in).DeepCopyInto(*out)
1062 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ThanosGCSSpec.
1063 func (in *ThanosGCSSpec) DeepCopy() *ThanosGCSSpec {
1067 out := new(ThanosGCSSpec)
1068 in.DeepCopyInto(out)
1072 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
1073 func (in *ThanosS3Spec) DeepCopyInto(out *ThanosS3Spec) {
1075 if in.Bucket != nil {
1076 in, out := &in.Bucket, &out.Bucket
1080 if in.Endpoint != nil {
1081 in, out := &in.Endpoint, &out.Endpoint
1085 if in.AccessKey != nil {
1086 in, out := &in.AccessKey, &out.AccessKey
1087 *out = new(corev1.SecretKeySelector)
1088 (*in).DeepCopyInto(*out)
1090 if in.SecretKey != nil {
1091 in, out := &in.SecretKey, &out.SecretKey
1092 *out = new(corev1.SecretKeySelector)
1093 (*in).DeepCopyInto(*out)
1095 if in.Insecure != nil {
1096 in, out := &in.Insecure, &out.Insecure
1100 if in.SignatureVersion2 != nil {
1101 in, out := &in.SignatureVersion2, &out.SignatureVersion2
1105 if in.EncryptSSE != nil {
1106 in, out := &in.EncryptSSE, &out.EncryptSSE
1113 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ThanosS3Spec.
1114 func (in *ThanosS3Spec) DeepCopy() *ThanosS3Spec {
1118 out := new(ThanosS3Spec)
1119 in.DeepCopyInto(out)
1123 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
1124 func (in *ThanosSpec) DeepCopyInto(out *ThanosSpec) {
1126 if in.Peers != nil {
1127 in, out := &in.Peers, &out.Peers
1131 if in.Image != nil {
1132 in, out := &in.Image, &out.Image
1136 if in.Version != nil {
1137 in, out := &in.Version, &out.Version
1142 in, out := &in.Tag, &out.Tag
1147 in, out := &in.SHA, &out.SHA
1151 if in.BaseImage != nil {
1152 in, out := &in.BaseImage, &out.BaseImage
1156 in.Resources.DeepCopyInto(&out.Resources)
1158 in, out := &in.GCS, &out.GCS
1159 *out = new(ThanosGCSSpec)
1160 (*in).DeepCopyInto(*out)
1163 in, out := &in.S3, &out.S3
1164 *out = new(ThanosS3Spec)
1165 (*in).DeepCopyInto(*out)
1167 if in.ObjectStorageConfig != nil {
1168 in, out := &in.ObjectStorageConfig, &out.ObjectStorageConfig
1169 *out = new(corev1.SecretKeySelector)
1170 (*in).DeepCopyInto(*out)
1172 if in.GrpcAdvertiseAddress != nil {
1173 in, out := &in.GrpcAdvertiseAddress, &out.GrpcAdvertiseAddress
1177 if in.ClusterAdvertiseAddress != nil {
1178 in, out := &in.ClusterAdvertiseAddress, &out.ClusterAdvertiseAddress
1185 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ThanosSpec.
1186 func (in *ThanosSpec) DeepCopy() *ThanosSpec {
1190 out := new(ThanosSpec)
1191 in.DeepCopyInto(out)