Skip to content

KAIZEN: add comments explaining the developers' intent.#293

Merged
skoya76 merged 1 commit into
mainfrom
add-technical-note
Jun 11, 2026
Merged

KAIZEN: add comments explaining the developers' intent.#293
skoya76 merged 1 commit into
mainfrom
add-technical-note

Conversation

@satoru-takeuchi

Copy link
Copy Markdown
Contributor

No description provided.

@satoru-takeuchi satoru-takeuchi requested a review from Copilot June 11, 2026 01:53
@satoru-takeuchi satoru-takeuchi marked this pull request as ready for review June 11, 2026 01:53
@satoru-takeuchi satoru-takeuchi requested a review from a team as a code owner June 11, 2026 01:53
@satoru-takeuchi satoru-takeuchi requested review from skoya76 and removed request for a team June 11, 2026 01:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR is a KAIZEN-style update that adds intent-revealing comments across the controller, scripts, and CRD/API documentation to clarify why certain behaviors/fields exist and how they’re expected to be used.

Changes:

  • Documented why export-diff writes to a temp file before renaming (restart/interruption detection).
  • Documented the rationale for the export-data PVC size margin and lower bound.
  • Expanded transferPartSize field documentation to explain why some jobs read it from status instead of controller flags.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
internal/controller/script/job-export.sh Adds comments explaining the temp-file-then-rename pattern for export-diff outputs.
internal/controller/mantlebackup_controller.go Adds comments explaining PVC sizing margin and minimum size rationale.
config/crd/bases/mantle.cybozu.io_mantlebackups.yaml Expands CRD field description for transferPartSize to capture operational intent.
charts/mantle-cluster-wide/templates/mantle.cybozu.io_mantlebackups.yaml Mirrors the CRD description change in the Helm chart template.
api/v1/mantlebackup_types.go Expands Go API field comments for TransferPartSize with the same intent explanation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread config/crd/bases/mantle.cybozu.io_mantlebackups.yaml Outdated
Comment thread charts/mantle-cluster-wide/templates/mantle.cybozu.io_mantlebackups.yaml Outdated
Comment thread api/v1/mantlebackup_types.go Outdated
@satoru-takeuchi

satoru-takeuchi commented Jun 11, 2026

Copy link
Copy Markdown
Contributor Author

@skoya76 I got some suggestions from copilot. Please wait until I address these.

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.

@satoru-takeuchi

Copy link
Copy Markdown
Contributor Author

@skoya76 I addressed Copilot's suggestions. Please review this PR.

@skoya76 skoya76 merged commit 4c7626d into main Jun 11, 2026
16 checks passed
@skoya76 skoya76 deleted the add-technical-note branch June 11, 2026 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants