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

webhook/mutator: filter out the witness node (backport #104) #107

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Aug 7, 2024

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)

annotations: {network.harvesterhci.io/matched-nodes: "["harvester-node-0","harvester-node-2"]"}

This is an automatic backport of pull request #104 done by [Mergify](https://mergify.com).

    - 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]>
(cherry picked from commit 1813db8)
@Vicente-Cheng Vicente-Cheng merged commit 1e949e2 into v0.4.x Aug 9, 2024
4 checks passed
@mergify mergify bot deleted the mergify/bp/v0.4.x/pr-104 branch August 9, 2024 06:33
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