Commit 6821eac
chore: regenerate deepcopy and CRD manifests (#239)
* Log per-metric PU candidates on scale events
In dual CPU scaling mode, the "updated processing units via google cloud
api" log only reported before/after PU values, so operators could not
tell which metric (highPriority or total) drove a scale event after the
fact. The Kubernetes "Updated" Event had the same gap.
Refactor calcDesiredProcessingUnits to return a scaleDecision struct
that bundles the chosen PU with the per-metric candidates
(DesiredByHighPriority, DesiredByTotal). The Reconcile loop now logs
both candidates alongside the configured metric type and current CPU
utilizations on the three scale-related sites:
- V(1) "processing units need to be changed"
- Info "updated processing units via google cloud api"
- Kubernetes "Updated" Event
Readers can identify the driving metric by comparing the after value
against DesiredByHighPriority and DesiredByTotal — no separate "driver"
field is materialized.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Regenerate deepcopy and CRD manifests
Two prior PRs added api/v1beta1 changes without running the
controller-gen targets, leaving local drift that surfaces every time a
contributor runs `make manifests generate`:
- #227 (scale down time restriction) added ScaleConfig.ScaledownNotAllowedTimes
but did not regenerate DeepCopyInto. Without the generated copy, a
deep-copied ScaleConfig shares the underlying slice with the original;
any future code that mutates the field on a copy would corrupt the
informer cache.
- #237 (CPU metric observability) expanded the godoc for
currentHighPriorityCPUUtilization and currentTotalCPUUtilization but
did not regenerate the CRD YAML, so `kubectl explain` still shows the
older descriptions.
This commit is purely the output of `make manifests generate` — no
hand edits.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent e75a108 commit 6821eac
2 files changed
Lines changed: 16 additions & 2 deletions
File tree
- api/v1beta1
- config/crd/bases
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
477 | 477 | | |
478 | 478 | | |
479 | 479 | | |
480 | | - | |
481 | | - | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
482 | 490 | | |
483 | 491 | | |
484 | 492 | | |
| |||
487 | 495 | | |
488 | 496 | | |
489 | 497 | | |
| 498 | + | |
490 | 499 | | |
491 | 500 | | |
492 | 501 | | |
| |||
0 commit comments