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 new validator when adding bd #155

Merged

Conversation

Vicente-Cheng
Copy link
Collaborator

Problem:
Because volume group management needs to consider many factors, we decided to offload this behavior to the user and block operations, like adding a new block device to the volume group.

Solution:
We need to check when trying to add a new blockdevice into volume group

Related Issue:

Test plan:

@Vicente-Cheng Vicente-Cheng force-pushed the add-new-validator-when-adding-bd branch from f70f894 to 7754150 Compare October 16, 2024 03:48
Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
@Vicente-Cheng Vicente-Cheng force-pushed the add-new-validator-when-adding-bd branch 2 times, most recently from ae652dd to 1a6c1e7 Compare October 16, 2024 04:15
Copy link
Contributor

@tserong tserong left a comment

Choose a reason for hiding this comment

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

Just a very small wording suggestion, otherwise LGTM!

pkg/webhook/blockdevice/validator.go Outdated Show resolved Hide resolved
@Vicente-Cheng Vicente-Cheng force-pushed the add-new-validator-when-adding-bd branch from 1a6c1e7 to d4eefaf Compare October 16, 2024 06:23
    - simpify the vg management and offload to user on v1.4

Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
@Vicente-Cheng Vicente-Cheng force-pushed the add-new-validator-when-adding-bd branch from d4eefaf to 331ac23 Compare October 16, 2024 07:19
   - sync the `Spec.Provision` and `Spec.Filesystem.Provisioned`

Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
@Vicente-Cheng Vicente-Cheng force-pushed the add-new-validator-when-adding-bd branch from 331ac23 to a4901fc Compare October 16, 2024 11:34
@Vicente-Cheng Vicente-Cheng merged commit e2ebe73 into harvester:master Oct 17, 2024
7 checks passed
@Vicente-Cheng
Copy link
Collaborator Author

@Mergifyio backport v0.7.x

Copy link

mergify bot commented Oct 17, 2024

backport v0.7.x

✅ Backports have been created

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