Skip to content

docs: improve documentation for total CPU mode, schedule overlap, and immutable fields#216

Merged
rustycl0ck merged 3 commits into
masterfrom
docs/improve-user-documentation
Apr 22, 2026
Merged

docs: improve documentation for total CPU mode, schedule overlap, and immutable fields#216
rustycl0ck merged 3 commits into
masterfrom
docs/improve-user-documentation

Conversation

@tkuchiki
Copy link
Copy Markdown
Contributor

What this PR does

Fills in documentation gaps that users were running into when adopting new features.

README

  • Add a YAML example for targetCPUUtilization.total with an inline note explaining:
    • highPriority and total are mutually exclusive and use different Cloud Monitoring metrics
    • Switching between them on a live resource skips one reconcile cycle until the syncer populates the new metric type in status
  • Add a note to the Scheduled scaling section explaining that additionalProcessingUnits from overlapping schedules are summed for both desiredMinPUs and desiredMaxPUs
  • Remove the duplicate metric-type switching note that was placed after the Examples section (now covered inline next to the total example)

CRD reference (docs/crd-reference.md)

Updated via source comments in api/v1beta1/spannerautoscaleschedule_types.go (regenerated with make docs) to preserve changes across future regenerations:

  • Mark targetResource and schedule as immutable after creation in SpannerAutoscaleScheduleSpec
  • Clarify that additionalProcessingUnits is the only field that can be updated in place

Test plan

  • make docs regenerates docs/crd-reference.md correctly with the new descriptions

🤖 Generated with Claude Code

tkuchiki and others added 2 commits April 20, 2026 17:58
…eduleSpec

Mark targetResource and schedule as immutable after creation, and
clarify that additionalProcessingUnits is the only field that can be
updated in place. Changes are made via source comments so they are
preserved across make docs regenerations.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… metric-type switching

- Add YAML example for targetCPUUtilization.total with a note explaining
  that highPriority and total are mutually exclusive, use different Cloud
  Monitoring metrics, and that switching between them skips one reconcile
- Add note to the Scheduled scaling section explaining that
  additionalProcessingUnits from overlapping schedules are summed for
  both desiredMinPUs and desiredMaxPUs
- Remove the duplicate metric-type switching note that was placed after
  the Examples section (now covered inline next to the total example)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@tkuchiki tkuchiki marked this pull request as ready for review April 20, 2026 09:17
@tkuchiki tkuchiki requested a review from a team as a code owner April 20, 2026 09:17
@rustycl0ck rustycl0ck added the release/patch Indicates patch update to action-release-label label Apr 22, 2026
@rustycl0ck rustycl0ck enabled auto-merge (squash) April 22, 2026 02:04
@rustycl0ck rustycl0ck merged commit bfa9267 into master Apr 22, 2026
3 checks passed
@rustycl0ck rustycl0ck deleted the docs/improve-user-documentation branch April 22, 2026 02:06
@github-actions
Copy link
Copy Markdown

A tag with version v0.7.2 has been created! 🎉

Changes: v0.7.1...v0.7.2

@github-actions
Copy link
Copy Markdown

A new github release with version v0.7.2 has been created! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release/patch Indicates patch update to action-release-label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants