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

NetworkFence: correct check in validating webhook #333

Merged
merged 1 commit into from
Mar 28, 2023

Conversation

nixpanic
Copy link
Collaborator

When a NetworkFence CR is validated, an incorrect comparison is done. DeepEqual() returns true when the there are no changes, this is valid and not an error. Adding ! to inverse the check corrects the comparison and only reports an error when the parameters are modified.

See-also: https://bugzilla.redhat.com/2182375

When a NetworkFence CR is validated, an incorrect comparison is done.
`DeepEqual()` returns `true` when the there are no changes, this is
valid and not an error. Adding `!` to inverse the check corrects the
comparison and only reports an error when the parameters are modified.

See-also: https://bugzilla.redhat.com/2182375
Signed-off-by: Niels de Vos <[email protected]>
@nixpanic nixpanic requested a review from Madhu-1 March 28, 2023 14:39
@mergify mergify bot requested review from Rakshith-R and yati1998 March 28, 2023 14:40
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