Skip to content

to achieve dynamic remounting of CSI storage after a sandbox instance…#254

Open
BH4AWS wants to merge 1 commit intoopenkruise:masterfrom
BH4AWS:feat/update_for_support_csi_mount_after_resuming
Open

to achieve dynamic remounting of CSI storage after a sandbox instance…#254
BH4AWS wants to merge 1 commit intoopenkruise:masterfrom
BH4AWS:feat/update_for_support_csi_mount_after_resuming

Conversation

@BH4AWS
Copy link
Copy Markdown
Contributor

@BH4AWS BH4AWS commented Apr 4, 2026

… resumes from hibernation

Ⅰ. Describe what this PR does

1\ In order to achieve dynamic remounting of CSI storage after a sandbox instance resumes from hibernation, some shared code logic needs to be adjusted in advance. The next PR will implement CSI storage remounting after hibernation and resume based on the object-oriented approach of SandboxClaim.

Ⅱ. Does this pull request fix one issue?

Ⅲ. Describe how to verify it

Ⅳ. Special notes for reviews

@kruise-bot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kruise-bot
Copy link
Copy Markdown

@BH4AWS: PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

}

func NewSandboxControl(c client.Client, recorder record.EventRecorder, rl *RateLimiter) map[string]SandboxControl {
func NewSandboxControl(c client.Client, recorder record.EventRecorder, rl *RateLimiter, sandboxClient *clients.ClientSet, cache *sandboxcr.Cache) map[string]SandboxControl {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

use funcArgs to contain all the parameters, e.g. client, recorder.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done,using struct

originObj.Annotations = make(map[string]string)
}
_, hashWithoutImageAndResource := core.HashSandbox(box)
_, hashWithoutImageAndResource := sandboxcr.HashSandbox(box)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Move the HashSandbox to pkg/util ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

DONE

… resumes from hibernation

Signed-off-by: jicheng.sk <jicheng.sk@alibaba-inc.com>
@BH4AWS BH4AWS force-pushed the feat/update_for_support_csi_mount_after_resuming branch from 24670c2 to 7be9446 Compare April 19, 2026 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants