kubesphere.io/api@v0.0.0-20231107125330-c9a03957060c/alerting/v2beta1/zz_generated.deepcopy.go (about) 1 //go:build !ignore_autogenerated 2 // +build !ignore_autogenerated 3 4 /* 5 Copyright 2020 The KubeSphere 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 controller-gen. DO NOT EDIT. 21 22 package v2beta1 23 24 import ( 25 "k8s.io/apimachinery/pkg/runtime" 26 ) 27 28 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 29 func (in *ClusterRule) DeepCopyInto(out *ClusterRule) { 30 *out = *in 31 in.Rule.DeepCopyInto(&out.Rule) 32 if in.ExprBuilder != nil { 33 in, out := &in.ExprBuilder, &out.ExprBuilder 34 *out = new(ClusterRuleExprBuilder) 35 (*in).DeepCopyInto(*out) 36 } 37 } 38 39 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRule. 40 func (in *ClusterRule) DeepCopy() *ClusterRule { 41 if in == nil { 42 return nil 43 } 44 out := new(ClusterRule) 45 in.DeepCopyInto(out) 46 return out 47 } 48 49 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 50 func (in *ClusterRuleExprBuilder) DeepCopyInto(out *ClusterRuleExprBuilder) { 51 *out = *in 52 if in.Node != nil { 53 in, out := &in.Node, &out.Node 54 *out = new(NodeExprBuilder) 55 (*in).DeepCopyInto(*out) 56 } 57 } 58 59 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRuleExprBuilder. 60 func (in *ClusterRuleExprBuilder) DeepCopy() *ClusterRuleExprBuilder { 61 if in == nil { 62 return nil 63 } 64 out := new(ClusterRuleExprBuilder) 65 in.DeepCopyInto(out) 66 return out 67 } 68 69 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 70 func (in *ClusterRuleGroup) DeepCopyInto(out *ClusterRuleGroup) { 71 *out = *in 72 out.TypeMeta = in.TypeMeta 73 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 74 in.Spec.DeepCopyInto(&out.Spec) 75 out.Status = in.Status 76 } 77 78 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRuleGroup. 79 func (in *ClusterRuleGroup) DeepCopy() *ClusterRuleGroup { 80 if in == nil { 81 return nil 82 } 83 out := new(ClusterRuleGroup) 84 in.DeepCopyInto(out) 85 return out 86 } 87 88 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 89 func (in *ClusterRuleGroup) DeepCopyObject() runtime.Object { 90 if c := in.DeepCopy(); c != nil { 91 return c 92 } 93 return nil 94 } 95 96 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 97 func (in *ClusterRuleGroupList) DeepCopyInto(out *ClusterRuleGroupList) { 98 *out = *in 99 out.TypeMeta = in.TypeMeta 100 in.ListMeta.DeepCopyInto(&out.ListMeta) 101 if in.Items != nil { 102 in, out := &in.Items, &out.Items 103 *out = make([]ClusterRuleGroup, len(*in)) 104 for i := range *in { 105 (*in)[i].DeepCopyInto(&(*out)[i]) 106 } 107 } 108 } 109 110 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRuleGroupList. 111 func (in *ClusterRuleGroupList) DeepCopy() *ClusterRuleGroupList { 112 if in == nil { 113 return nil 114 } 115 out := new(ClusterRuleGroupList) 116 in.DeepCopyInto(out) 117 return out 118 } 119 120 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 121 func (in *ClusterRuleGroupList) DeepCopyObject() runtime.Object { 122 if c := in.DeepCopy(); c != nil { 123 return c 124 } 125 return nil 126 } 127 128 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 129 func (in *ClusterRuleGroupSpec) DeepCopyInto(out *ClusterRuleGroupSpec) { 130 *out = *in 131 if in.Rules != nil { 132 in, out := &in.Rules, &out.Rules 133 *out = make([]ClusterRule, len(*in)) 134 for i := range *in { 135 (*in)[i].DeepCopyInto(&(*out)[i]) 136 } 137 } 138 } 139 140 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRuleGroupSpec. 141 func (in *ClusterRuleGroupSpec) DeepCopy() *ClusterRuleGroupSpec { 142 if in == nil { 143 return nil 144 } 145 out := new(ClusterRuleGroupSpec) 146 in.DeepCopyInto(out) 147 return out 148 } 149 150 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 151 func (in *ClusterRuleGroupStatus) DeepCopyInto(out *ClusterRuleGroupStatus) { 152 *out = *in 153 } 154 155 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRuleGroupStatus. 156 func (in *ClusterRuleGroupStatus) DeepCopy() *ClusterRuleGroupStatus { 157 if in == nil { 158 return nil 159 } 160 out := new(ClusterRuleGroupStatus) 161 in.DeepCopyInto(out) 162 return out 163 } 164 165 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 166 func (in *GlobalRule) DeepCopyInto(out *GlobalRule) { 167 *out = *in 168 if in.ClusterSelector != nil { 169 in, out := &in.ClusterSelector, &out.ClusterSelector 170 *out = new(MetricLabelSelector) 171 (*in).DeepCopyInto(*out) 172 } 173 if in.NamespaceSelector != nil { 174 in, out := &in.NamespaceSelector, &out.NamespaceSelector 175 *out = new(MetricLabelSelector) 176 (*in).DeepCopyInto(*out) 177 } 178 in.Rule.DeepCopyInto(&out.Rule) 179 if in.ExprBuilder != nil { 180 in, out := &in.ExprBuilder, &out.ExprBuilder 181 *out = new(GlobalRuleExprBuilder) 182 (*in).DeepCopyInto(*out) 183 } 184 } 185 186 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GlobalRule. 187 func (in *GlobalRule) DeepCopy() *GlobalRule { 188 if in == nil { 189 return nil 190 } 191 out := new(GlobalRule) 192 in.DeepCopyInto(out) 193 return out 194 } 195 196 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 197 func (in *GlobalRuleExprBuilder) DeepCopyInto(out *GlobalRuleExprBuilder) { 198 *out = *in 199 if in.Workload != nil { 200 in, out := &in.Workload, &out.Workload 201 *out = new(ScopedWorkloadExprBuilder) 202 (*in).DeepCopyInto(*out) 203 } 204 if in.Node != nil { 205 in, out := &in.Node, &out.Node 206 *out = new(ScopedNodeExprBuilder) 207 (*in).DeepCopyInto(*out) 208 } 209 } 210 211 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GlobalRuleExprBuilder. 212 func (in *GlobalRuleExprBuilder) DeepCopy() *GlobalRuleExprBuilder { 213 if in == nil { 214 return nil 215 } 216 out := new(GlobalRuleExprBuilder) 217 in.DeepCopyInto(out) 218 return out 219 } 220 221 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 222 func (in *GlobalRuleGroup) DeepCopyInto(out *GlobalRuleGroup) { 223 *out = *in 224 out.TypeMeta = in.TypeMeta 225 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 226 in.Spec.DeepCopyInto(&out.Spec) 227 out.Status = in.Status 228 } 229 230 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GlobalRuleGroup. 231 func (in *GlobalRuleGroup) DeepCopy() *GlobalRuleGroup { 232 if in == nil { 233 return nil 234 } 235 out := new(GlobalRuleGroup) 236 in.DeepCopyInto(out) 237 return out 238 } 239 240 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 241 func (in *GlobalRuleGroup) DeepCopyObject() runtime.Object { 242 if c := in.DeepCopy(); c != nil { 243 return c 244 } 245 return nil 246 } 247 248 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 249 func (in *GlobalRuleGroupList) DeepCopyInto(out *GlobalRuleGroupList) { 250 *out = *in 251 out.TypeMeta = in.TypeMeta 252 in.ListMeta.DeepCopyInto(&out.ListMeta) 253 if in.Items != nil { 254 in, out := &in.Items, &out.Items 255 *out = make([]GlobalRuleGroup, len(*in)) 256 for i := range *in { 257 (*in)[i].DeepCopyInto(&(*out)[i]) 258 } 259 } 260 } 261 262 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GlobalRuleGroupList. 263 func (in *GlobalRuleGroupList) DeepCopy() *GlobalRuleGroupList { 264 if in == nil { 265 return nil 266 } 267 out := new(GlobalRuleGroupList) 268 in.DeepCopyInto(out) 269 return out 270 } 271 272 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 273 func (in *GlobalRuleGroupList) DeepCopyObject() runtime.Object { 274 if c := in.DeepCopy(); c != nil { 275 return c 276 } 277 return nil 278 } 279 280 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 281 func (in *GlobalRuleGroupSpec) DeepCopyInto(out *GlobalRuleGroupSpec) { 282 *out = *in 283 if in.Rules != nil { 284 in, out := &in.Rules, &out.Rules 285 *out = make([]GlobalRule, len(*in)) 286 for i := range *in { 287 (*in)[i].DeepCopyInto(&(*out)[i]) 288 } 289 } 290 } 291 292 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GlobalRuleGroupSpec. 293 func (in *GlobalRuleGroupSpec) DeepCopy() *GlobalRuleGroupSpec { 294 if in == nil { 295 return nil 296 } 297 out := new(GlobalRuleGroupSpec) 298 in.DeepCopyInto(out) 299 return out 300 } 301 302 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 303 func (in *GlobalRuleGroupStatus) DeepCopyInto(out *GlobalRuleGroupStatus) { 304 *out = *in 305 } 306 307 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GlobalRuleGroupStatus. 308 func (in *GlobalRuleGroupStatus) DeepCopy() *GlobalRuleGroupStatus { 309 if in == nil { 310 return nil 311 } 312 out := new(GlobalRuleGroupStatus) 313 in.DeepCopyInto(out) 314 return out 315 } 316 317 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 318 func (in *Matcher) DeepCopyInto(out *Matcher) { 319 *out = *in 320 } 321 322 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Matcher. 323 func (in *Matcher) DeepCopy() *Matcher { 324 if in == nil { 325 return nil 326 } 327 out := new(Matcher) 328 in.DeepCopyInto(out) 329 return out 330 } 331 332 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 333 func (in *MetricLabelSelector) DeepCopyInto(out *MetricLabelSelector) { 334 *out = *in 335 if in.InValues != nil { 336 in, out := &in.InValues, &out.InValues 337 *out = make([]string, len(*in)) 338 copy(*out, *in) 339 } 340 if in.Matcher != nil { 341 in, out := &in.Matcher, &out.Matcher 342 *out = new(Matcher) 343 **out = **in 344 } 345 } 346 347 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricLabelSelector. 348 func (in *MetricLabelSelector) DeepCopy() *MetricLabelSelector { 349 if in == nil { 350 return nil 351 } 352 out := new(MetricLabelSelector) 353 in.DeepCopyInto(out) 354 return out 355 } 356 357 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 358 func (in *NamespaceRule) DeepCopyInto(out *NamespaceRule) { 359 *out = *in 360 in.Rule.DeepCopyInto(&out.Rule) 361 if in.ExprBuilder != nil { 362 in, out := &in.ExprBuilder, &out.ExprBuilder 363 *out = new(NamespaceRuleExprBuilder) 364 (*in).DeepCopyInto(*out) 365 } 366 } 367 368 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceRule. 369 func (in *NamespaceRule) DeepCopy() *NamespaceRule { 370 if in == nil { 371 return nil 372 } 373 out := new(NamespaceRule) 374 in.DeepCopyInto(out) 375 return out 376 } 377 378 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 379 func (in *NamespaceRuleExprBuilder) DeepCopyInto(out *NamespaceRuleExprBuilder) { 380 *out = *in 381 if in.Workload != nil { 382 in, out := &in.Workload, &out.Workload 383 *out = new(WorkloadExprBuilder) 384 (*in).DeepCopyInto(*out) 385 } 386 } 387 388 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceRuleExprBuilder. 389 func (in *NamespaceRuleExprBuilder) DeepCopy() *NamespaceRuleExprBuilder { 390 if in == nil { 391 return nil 392 } 393 out := new(NamespaceRuleExprBuilder) 394 in.DeepCopyInto(out) 395 return out 396 } 397 398 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 399 func (in *NodeCpuThreshold) DeepCopyInto(out *NodeCpuThreshold) { 400 *out = *in 401 if in.Utilization != nil { 402 in, out := &in.Utilization, &out.Utilization 403 *out = new(float64) 404 **out = **in 405 } 406 if in.Load1m != nil { 407 in, out := &in.Load1m, &out.Load1m 408 *out = new(float64) 409 **out = **in 410 } 411 if in.Load5m != nil { 412 in, out := &in.Load5m, &out.Load5m 413 *out = new(float64) 414 **out = **in 415 } 416 if in.Load15m != nil { 417 in, out := &in.Load15m, &out.Load15m 418 *out = new(float64) 419 **out = **in 420 } 421 } 422 423 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeCpuThreshold. 424 func (in *NodeCpuThreshold) DeepCopy() *NodeCpuThreshold { 425 if in == nil { 426 return nil 427 } 428 out := new(NodeCpuThreshold) 429 in.DeepCopyInto(out) 430 return out 431 } 432 433 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 434 func (in *NodeDiskThreshold) DeepCopyInto(out *NodeDiskThreshold) { 435 *out = *in 436 if in.SpaceUtilization != nil { 437 in, out := &in.SpaceUtilization, &out.SpaceUtilization 438 *out = new(float64) 439 **out = **in 440 } 441 if in.SpaceAvailable != nil { 442 in, out := &in.SpaceAvailable, &out.SpaceAvailable 443 *out = new(float64) 444 **out = **in 445 } 446 if in.InodeUtilization != nil { 447 in, out := &in.InodeUtilization, &out.InodeUtilization 448 *out = new(float64) 449 **out = **in 450 } 451 if in.IopsRead != nil { 452 in, out := &in.IopsRead, &out.IopsRead 453 *out = new(float64) 454 **out = **in 455 } 456 if in.IopsWrite != nil { 457 in, out := &in.IopsWrite, &out.IopsWrite 458 *out = new(float64) 459 **out = **in 460 } 461 if in.ThroughputRead != nil { 462 in, out := &in.ThroughputRead, &out.ThroughputRead 463 *out = new(float64) 464 **out = **in 465 } 466 if in.ThroughputWrite != nil { 467 in, out := &in.ThroughputWrite, &out.ThroughputWrite 468 *out = new(float64) 469 **out = **in 470 } 471 } 472 473 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeDiskThreshold. 474 func (in *NodeDiskThreshold) DeepCopy() *NodeDiskThreshold { 475 if in == nil { 476 return nil 477 } 478 out := new(NodeDiskThreshold) 479 in.DeepCopyInto(out) 480 return out 481 } 482 483 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 484 func (in *NodeExprBuilder) DeepCopyInto(out *NodeExprBuilder) { 485 *out = *in 486 if in.NodeNames != nil { 487 in, out := &in.NodeNames, &out.NodeNames 488 *out = make([]string, len(*in)) 489 copy(*out, *in) 490 } 491 in.MetricThreshold.DeepCopyInto(&out.MetricThreshold) 492 } 493 494 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeExprBuilder. 495 func (in *NodeExprBuilder) DeepCopy() *NodeExprBuilder { 496 if in == nil { 497 return nil 498 } 499 out := new(NodeExprBuilder) 500 in.DeepCopyInto(out) 501 return out 502 } 503 504 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 505 func (in *NodeMemoryThreshold) DeepCopyInto(out *NodeMemoryThreshold) { 506 *out = *in 507 if in.Utilization != nil { 508 in, out := &in.Utilization, &out.Utilization 509 *out = new(float64) 510 **out = **in 511 } 512 if in.Available != nil { 513 in, out := &in.Available, &out.Available 514 *out = new(float64) 515 **out = **in 516 } 517 } 518 519 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeMemoryThreshold. 520 func (in *NodeMemoryThreshold) DeepCopy() *NodeMemoryThreshold { 521 if in == nil { 522 return nil 523 } 524 out := new(NodeMemoryThreshold) 525 in.DeepCopyInto(out) 526 return out 527 } 528 529 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 530 func (in *NodeMetricThreshold) DeepCopyInto(out *NodeMetricThreshold) { 531 *out = *in 532 if in.Cpu != nil { 533 in, out := &in.Cpu, &out.Cpu 534 *out = new(NodeCpuThreshold) 535 (*in).DeepCopyInto(*out) 536 } 537 if in.Memory != nil { 538 in, out := &in.Memory, &out.Memory 539 *out = new(NodeMemoryThreshold) 540 (*in).DeepCopyInto(*out) 541 } 542 if in.Network != nil { 543 in, out := &in.Network, &out.Network 544 *out = new(NodeNetworkThreshold) 545 (*in).DeepCopyInto(*out) 546 } 547 if in.Disk != nil { 548 in, out := &in.Disk, &out.Disk 549 *out = new(NodeDiskThreshold) 550 (*in).DeepCopyInto(*out) 551 } 552 if in.Pod != nil { 553 in, out := &in.Pod, &out.Pod 554 *out = new(NodePodThreshold) 555 (*in).DeepCopyInto(*out) 556 } 557 } 558 559 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeMetricThreshold. 560 func (in *NodeMetricThreshold) DeepCopy() *NodeMetricThreshold { 561 if in == nil { 562 return nil 563 } 564 out := new(NodeMetricThreshold) 565 in.DeepCopyInto(out) 566 return out 567 } 568 569 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 570 func (in *NodeNetworkThreshold) DeepCopyInto(out *NodeNetworkThreshold) { 571 *out = *in 572 if in.TransmittedRate != nil { 573 in, out := &in.TransmittedRate, &out.TransmittedRate 574 *out = new(float64) 575 **out = **in 576 } 577 if in.ReceivedRate != nil { 578 in, out := &in.ReceivedRate, &out.ReceivedRate 579 *out = new(float64) 580 **out = **in 581 } 582 } 583 584 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeNetworkThreshold. 585 func (in *NodeNetworkThreshold) DeepCopy() *NodeNetworkThreshold { 586 if in == nil { 587 return nil 588 } 589 out := new(NodeNetworkThreshold) 590 in.DeepCopyInto(out) 591 return out 592 } 593 594 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 595 func (in *NodePodThreshold) DeepCopyInto(out *NodePodThreshold) { 596 *out = *in 597 if in.Utilization != nil { 598 in, out := &in.Utilization, &out.Utilization 599 *out = new(float64) 600 **out = **in 601 } 602 if in.AbnormalRatio != nil { 603 in, out := &in.AbnormalRatio, &out.AbnormalRatio 604 *out = new(float64) 605 **out = **in 606 } 607 } 608 609 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodePodThreshold. 610 func (in *NodePodThreshold) DeepCopy() *NodePodThreshold { 611 if in == nil { 612 return nil 613 } 614 out := new(NodePodThreshold) 615 in.DeepCopyInto(out) 616 return out 617 } 618 619 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 620 func (in *Rule) DeepCopyInto(out *Rule) { 621 *out = *in 622 out.Expr = in.Expr 623 if in.Labels != nil { 624 in, out := &in.Labels, &out.Labels 625 *out = make(map[string]string, len(*in)) 626 for key, val := range *in { 627 (*out)[key] = val 628 } 629 } 630 if in.Annotations != nil { 631 in, out := &in.Annotations, &out.Annotations 632 *out = make(map[string]string, len(*in)) 633 for key, val := range *in { 634 (*out)[key] = val 635 } 636 } 637 } 638 639 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rule. 640 func (in *Rule) DeepCopy() *Rule { 641 if in == nil { 642 return nil 643 } 644 out := new(Rule) 645 in.DeepCopyInto(out) 646 return out 647 } 648 649 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 650 func (in *RuleGroup) DeepCopyInto(out *RuleGroup) { 651 *out = *in 652 out.TypeMeta = in.TypeMeta 653 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 654 in.Spec.DeepCopyInto(&out.Spec) 655 out.Status = in.Status 656 } 657 658 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleGroup. 659 func (in *RuleGroup) DeepCopy() *RuleGroup { 660 if in == nil { 661 return nil 662 } 663 out := new(RuleGroup) 664 in.DeepCopyInto(out) 665 return out 666 } 667 668 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 669 func (in *RuleGroup) DeepCopyObject() runtime.Object { 670 if c := in.DeepCopy(); c != nil { 671 return c 672 } 673 return nil 674 } 675 676 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 677 func (in *RuleGroupList) DeepCopyInto(out *RuleGroupList) { 678 *out = *in 679 out.TypeMeta = in.TypeMeta 680 in.ListMeta.DeepCopyInto(&out.ListMeta) 681 if in.Items != nil { 682 in, out := &in.Items, &out.Items 683 *out = make([]RuleGroup, len(*in)) 684 for i := range *in { 685 (*in)[i].DeepCopyInto(&(*out)[i]) 686 } 687 } 688 } 689 690 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleGroupList. 691 func (in *RuleGroupList) DeepCopy() *RuleGroupList { 692 if in == nil { 693 return nil 694 } 695 out := new(RuleGroupList) 696 in.DeepCopyInto(out) 697 return out 698 } 699 700 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 701 func (in *RuleGroupList) DeepCopyObject() runtime.Object { 702 if c := in.DeepCopy(); c != nil { 703 return c 704 } 705 return nil 706 } 707 708 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 709 func (in *RuleGroupSpec) DeepCopyInto(out *RuleGroupSpec) { 710 *out = *in 711 if in.Rules != nil { 712 in, out := &in.Rules, &out.Rules 713 *out = make([]NamespaceRule, len(*in)) 714 for i := range *in { 715 (*in)[i].DeepCopyInto(&(*out)[i]) 716 } 717 } 718 } 719 720 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleGroupSpec. 721 func (in *RuleGroupSpec) DeepCopy() *RuleGroupSpec { 722 if in == nil { 723 return nil 724 } 725 out := new(RuleGroupSpec) 726 in.DeepCopyInto(out) 727 return out 728 } 729 730 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 731 func (in *RuleGroupStatus) DeepCopyInto(out *RuleGroupStatus) { 732 *out = *in 733 } 734 735 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleGroupStatus. 736 func (in *RuleGroupStatus) DeepCopy() *RuleGroupStatus { 737 if in == nil { 738 return nil 739 } 740 out := new(RuleGroupStatus) 741 in.DeepCopyInto(out) 742 return out 743 } 744 745 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 746 func (in *ScopedNodeExprBuilder) DeepCopyInto(out *ScopedNodeExprBuilder) { 747 *out = *in 748 if in.NodeNames != nil { 749 in, out := &in.NodeNames, &out.NodeNames 750 *out = make([]ScopedNodeNames, len(*in)) 751 for i := range *in { 752 (*in)[i].DeepCopyInto(&(*out)[i]) 753 } 754 } 755 in.MetricThreshold.DeepCopyInto(&out.MetricThreshold) 756 } 757 758 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScopedNodeExprBuilder. 759 func (in *ScopedNodeExprBuilder) DeepCopy() *ScopedNodeExprBuilder { 760 if in == nil { 761 return nil 762 } 763 out := new(ScopedNodeExprBuilder) 764 in.DeepCopyInto(out) 765 return out 766 } 767 768 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 769 func (in *ScopedNodeNames) DeepCopyInto(out *ScopedNodeNames) { 770 *out = *in 771 if in.Names != nil { 772 in, out := &in.Names, &out.Names 773 *out = make([]string, len(*in)) 774 copy(*out, *in) 775 } 776 } 777 778 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScopedNodeNames. 779 func (in *ScopedNodeNames) DeepCopy() *ScopedNodeNames { 780 if in == nil { 781 return nil 782 } 783 out := new(ScopedNodeNames) 784 in.DeepCopyInto(out) 785 return out 786 } 787 788 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 789 func (in *ScopedWorkloadExprBuilder) DeepCopyInto(out *ScopedWorkloadExprBuilder) { 790 *out = *in 791 if in.WorkloadNames != nil { 792 in, out := &in.WorkloadNames, &out.WorkloadNames 793 *out = make([]ScopedWorkloadNames, len(*in)) 794 for i := range *in { 795 (*in)[i].DeepCopyInto(&(*out)[i]) 796 } 797 } 798 in.MetricThreshold.DeepCopyInto(&out.MetricThreshold) 799 } 800 801 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScopedWorkloadExprBuilder. 802 func (in *ScopedWorkloadExprBuilder) DeepCopy() *ScopedWorkloadExprBuilder { 803 if in == nil { 804 return nil 805 } 806 out := new(ScopedWorkloadExprBuilder) 807 in.DeepCopyInto(out) 808 return out 809 } 810 811 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 812 func (in *ScopedWorkloadNames) DeepCopyInto(out *ScopedWorkloadNames) { 813 *out = *in 814 if in.Names != nil { 815 in, out := &in.Names, &out.Names 816 *out = make([]string, len(*in)) 817 copy(*out, *in) 818 } 819 } 820 821 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScopedWorkloadNames. 822 func (in *ScopedWorkloadNames) DeepCopy() *ScopedWorkloadNames { 823 if in == nil { 824 return nil 825 } 826 out := new(ScopedWorkloadNames) 827 in.DeepCopyInto(out) 828 return out 829 } 830 831 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 832 func (in *WorkloadCpuThreshold) DeepCopyInto(out *WorkloadCpuThreshold) { 833 *out = *in 834 if in.Usage != nil { 835 in, out := &in.Usage, &out.Usage 836 *out = new(float64) 837 **out = **in 838 } 839 } 840 841 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadCpuThreshold. 842 func (in *WorkloadCpuThreshold) DeepCopy() *WorkloadCpuThreshold { 843 if in == nil { 844 return nil 845 } 846 out := new(WorkloadCpuThreshold) 847 in.DeepCopyInto(out) 848 return out 849 } 850 851 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 852 func (in *WorkloadExprBuilder) DeepCopyInto(out *WorkloadExprBuilder) { 853 *out = *in 854 if in.WorkloadNames != nil { 855 in, out := &in.WorkloadNames, &out.WorkloadNames 856 *out = make([]string, len(*in)) 857 copy(*out, *in) 858 } 859 in.MetricThreshold.DeepCopyInto(&out.MetricThreshold) 860 } 861 862 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadExprBuilder. 863 func (in *WorkloadExprBuilder) DeepCopy() *WorkloadExprBuilder { 864 if in == nil { 865 return nil 866 } 867 out := new(WorkloadExprBuilder) 868 in.DeepCopyInto(out) 869 return out 870 } 871 872 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 873 func (in *WorkloadMemoryThreshold) DeepCopyInto(out *WorkloadMemoryThreshold) { 874 *out = *in 875 if in.Usage != nil { 876 in, out := &in.Usage, &out.Usage 877 *out = new(float64) 878 **out = **in 879 } 880 if in.UsageWoCache != nil { 881 in, out := &in.UsageWoCache, &out.UsageWoCache 882 *out = new(float64) 883 **out = **in 884 } 885 } 886 887 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadMemoryThreshold. 888 func (in *WorkloadMemoryThreshold) DeepCopy() *WorkloadMemoryThreshold { 889 if in == nil { 890 return nil 891 } 892 out := new(WorkloadMemoryThreshold) 893 in.DeepCopyInto(out) 894 return out 895 } 896 897 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 898 func (in *WorkloadMetricThreshold) DeepCopyInto(out *WorkloadMetricThreshold) { 899 *out = *in 900 if in.Cpu != nil { 901 in, out := &in.Cpu, &out.Cpu 902 *out = new(WorkloadCpuThreshold) 903 (*in).DeepCopyInto(*out) 904 } 905 if in.Memory != nil { 906 in, out := &in.Memory, &out.Memory 907 *out = new(WorkloadMemoryThreshold) 908 (*in).DeepCopyInto(*out) 909 } 910 if in.Network != nil { 911 in, out := &in.Network, &out.Network 912 *out = new(WorkloadNetworkThreshold) 913 (*in).DeepCopyInto(*out) 914 } 915 if in.Replica != nil { 916 in, out := &in.Replica, &out.Replica 917 *out = new(WorkloadReplicaThreshold) 918 (*in).DeepCopyInto(*out) 919 } 920 } 921 922 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadMetricThreshold. 923 func (in *WorkloadMetricThreshold) DeepCopy() *WorkloadMetricThreshold { 924 if in == nil { 925 return nil 926 } 927 out := new(WorkloadMetricThreshold) 928 in.DeepCopyInto(out) 929 return out 930 } 931 932 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 933 func (in *WorkloadNetworkThreshold) DeepCopyInto(out *WorkloadNetworkThreshold) { 934 *out = *in 935 if in.TransmittedRate != nil { 936 in, out := &in.TransmittedRate, &out.TransmittedRate 937 *out = new(float64) 938 **out = **in 939 } 940 if in.ReceivedRate != nil { 941 in, out := &in.ReceivedRate, &out.ReceivedRate 942 *out = new(float64) 943 **out = **in 944 } 945 } 946 947 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadNetworkThreshold. 948 func (in *WorkloadNetworkThreshold) DeepCopy() *WorkloadNetworkThreshold { 949 if in == nil { 950 return nil 951 } 952 out := new(WorkloadNetworkThreshold) 953 in.DeepCopyInto(out) 954 return out 955 } 956 957 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 958 func (in *WorkloadReplicaThreshold) DeepCopyInto(out *WorkloadReplicaThreshold) { 959 *out = *in 960 if in.UnavailableRatio != nil { 961 in, out := &in.UnavailableRatio, &out.UnavailableRatio 962 *out = new(float64) 963 **out = **in 964 } 965 } 966 967 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadReplicaThreshold. 968 func (in *WorkloadReplicaThreshold) DeepCopy() *WorkloadReplicaThreshold { 969 if in == nil { 970 return nil 971 } 972 out := new(WorkloadReplicaThreshold) 973 in.DeepCopyInto(out) 974 return out 975 }