-
Notifications
You must be signed in to change notification settings - Fork 32
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
webhook/mutator: filter out the witness node #104
webhook/mutator: filter out the witness node #104
Conversation
- we do not allow any workload on the witness node, so we should filter out the witness node when creating the vlan config Signed-off-by: Vicente Cheng <[email protected]>
cc @a110605, backend PR is here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks
Hi @Vicente-Cheng , I test with the latest harvester-network-controller. The config filter out witness when first created, but wait for 3 ~ 5 mins the witness node is auto added in matched-nodes annotation. Do we have any mechanism to auto update annotation from backend ? Reproduce Steps:
|
@Mergifyio backport v0.4.x |
✅ Backports have been created
|
Problem:
The matched-node returns the whole nodes even if we have one witness node.
The witness node did not run any workload, so we should filter out this.
Solution:
we do not allow any workload on the witness node, so we should filter out the witness node when creating the vlan config.
Related Issue:
harvester/harvester#5325 (comment)
Test plan:
Make sure the annotation of vlanconfig response should looks like below (harvester-node-1 is the witness node)