Skip to content

remove unnecessary field MantleRestore.status.pool#186

Merged
skoya76 merged 2 commits into
mainfrom
5607-verify-1
Nov 10, 2025
Merged

remove unnecessary field MantleRestore.status.pool#186
skoya76 merged 2 commits into
mainfrom
5607-verify-1

Conversation

@llamerada-jp

Copy link
Copy Markdown
Contributor

MantleRestore.status.pool was kept to delete MR without MantleBackup. But the procedure of deletion has changed, and the field is unused.

To avoid error on go v1.25 environment

Signed-off-by: Yuji Ito <llamerada.jp@gmail.com>
`MantleRestore.status.pool` was kept to delete MR without MantleBackup.
But the procedure of deletion has changed, and the field is unused.

Signed-off-by: Yuji Ito <llamerada.jp@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

This PR removes the Pool field from the MantleRestore status object and refactors the restore process to fetch the pool name directly from the PV manifest at the point of use rather than storing it in the status. This change simplifies the API by eliminating redundant state storage and reduces unnecessary status updates during restoration.

Key changes:

  • Removed Pool field from MantleRestoreStatus struct and CRD definitions
  • Refactored pool retrieval to happen locally in cloneImageFromBackup instead of storing in status
  • Updated Go dependencies (go.uber.org/mock and various golang.org/x packages)

Reviewed Changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
api/v1/mantlerestore_types.go Removed Pool field from MantleRestoreStatus struct
internal/controller/mantlerestore_controller.go Removed status update logic for Pool; extracted pool locally in cloneImageFromBackup function
config/crd/bases/mantle.cybozu.io_mantlerestores.yaml Removed pool field from CRD status specification
charts/mantle-cluster-wide/templates/mantle.cybozu.io_mantlerestores.yaml Removed pool field from Helm chart CRD template
test/e2e/singlek8s/restore_test.go Removed Pool field from test status initialization
go.mod Updated go.uber.org/mock and golang.org/x dependencies
go.sum Updated checksums for dependency changes

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

@llamerada-jp llamerada-jp requested a review from skoya76 November 7, 2025 09:22
@skoya76 skoya76 merged commit dff79b3 into main Nov 10, 2025
17 checks passed
@skoya76 skoya76 deleted the 5607-verify-1 branch November 10, 2025 00:40
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