Skip to content

Ensuring nodelabel will be always present#923

Merged
thebsdbox merged 3 commits intokube-vip:mainfrom
cdtzabra:main
Jan 6, 2025
Merged

Ensuring nodelabel will be always present#923
thebsdbox merged 3 commits intokube-vip:mainfrom
cdtzabra:main

Conversation

@cdtzabra
Copy link
Contributor

As reported in the issue #863, nodelabel is missing sometimes.

for example, if the VIP is already associated with a node and you delete the kube-vip pods, once they're re-created, there's a good chance that none of your nodes will include the kube-vip/has-ip=xx label.
As a result, the existence of this label is unreliable.

The aim of this change is to ensure that the nodelabel is always added.

@cdtzabra cdtzabra requested a review from thebsdbox as a code owner August 21, 2024 16:25
@thebsdbox
Copy link
Collaborator

Hello, Sorry for the delay. Would it be possible to address the linting issue?

@cdtzabra
Copy link
Contributor Author

cdtzabra commented Sep 3, 2024

Hello, Sorry for the delay. Would it be possible to address the linting issue?

Hello

Done

@Cellebyte
Copy link
Collaborator

@cdtzabra linter is still unhappy with your code.

// Append label
applyPatchLabels(ctx, clientSet, id, "add", path, address)
} else if ok && value == address {
log.Debugf("Received identity: %s - id: %$", identity, id)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
log.Debugf("Received identity: %s - id: %$", identity, id)
log.Debugf("Received identity: %s - id: %s", identity, id)

@Cellebyte
Copy link
Collaborator

Other than that LGTM :)

@thebsdbox
Copy link
Collaborator

Going to merge this and then fix in a corresponding PR 😄

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