Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add commands for suspending and resuming drives and volumes #842

Merged
merged 2 commits into from Sep 21, 2023

Conversation

Praveenrajmani
Copy link
Collaborator

Fixes #836

.gitignore Show resolved Hide resolved
cmd/kubectl-directpv/resume_drives.go Outdated Show resolved Hide resolved
resumeVolumesCmd.PersistentFlags().SortFlags = false

addNodesFlag(resumeVolumesCmd, "If present, resume volumes from given nodes")
addDrivesFlag(resumeVolumesCmd, "If present, resume volumes by given drive names")
Copy link
Member

Choose a reason for hiding this comment

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

As these two flags are also available in resume_drives.go, you could add commonly to resume.go

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we can't have generic messages if we move it to resume.go like resume objects by given drive names

cmd/kubectl-directpv/resume_volumes.go Outdated Show resolved Hide resolved
suspendDrivesCmd.PersistentFlags().SortFlags = false

addNodesFlag(suspendDrivesCmd, "If present, suspend drives from given nodes")
addDrivesFlag(suspendDrivesCmd, "If present, suspend drives by given names")
Copy link
Member

Choose a reason for hiding this comment

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

Same as above commands

addDrivesFlag(suspendVolumesCmd, "If present, suspend volumes by given drive names")
addPodNameFlag(suspendVolumesCmd, "If present, suspend volumes by given pod names")
addPodNSFlag(suspendVolumesCmd, "If present, suspend volumes by given pod namespaces")
addDangerousFlag(suspendVolumesCmd, "Suspending the volumes will make them as read-only")
Copy link
Member

Choose a reason for hiding this comment

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

We could add this flag to suspend.go

pkg/csi/node/publish_unpublish.go Outdated Show resolved Hide resolved
pkg/csi/node/utils.go Outdated Show resolved Hide resolved
.gitignore Show resolved Hide resolved
functests/common.sh Outdated Show resolved Hide resolved
functests/common.sh Outdated Show resolved Hide resolved
functests/common.sh Outdated Show resolved Hide resolved
functests/common.sh Outdated Show resolved Hide resolved
@Praveenrajmani Praveenrajmani merged commit 83714fa into minio:master Sep 21, 2023
22 checks passed
@Praveenrajmani Praveenrajmani changed the title Add commands for suspending and resuming drives Add commands for suspending and resuming drives and volumes Sep 21, 2023
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.

Add drive suspension command instead of suspending volumes via labels
2 participants