ipcache: Fix wrong assertion in ipcache metadata test #23549
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
By code inspection, I realized that labels.LabelKubeAPIServer was not
the right key to use, but rather labels.IDNameKubeAPIServer. The test
still passed because it was asserting if the label was NOT in the label
set, which it wasn't, but not for the right reasons.
Fix the assertion in case of regressions in the future.
Fixes: f1b30c1 ("ipcache: Generate new identity if label is removed")
Signed-off-by: Chris Tarazi chris@isovalent.com