Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deduplicate set expression values in metav1.LabelSelector fuzzer.
Internal versions of ScaleStatus types use metav1.LabelSelector to represent label selectors, while external versions use the textual representation. During conversion to and from text, match expressions are sorted by key, and values for set operations "in" and "notin" are sorted and deduplicated. This loss of order and duplication is detected by roundtrip testing. The existing fuzz function for metav1.LabelSelector sorts match expressions by key and sorts, but does not deduplicate, set expression values. That function now also deduplicates set expression values so that fuzzed metav1.LabelSelectors can faithfully roundtrip through the textual label selector representation.
- Loading branch information