-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NETOBSERV-971 Fix couple of CRD issues on zero-values (#319)
* NETOBSERV-971 Fix couple of CRD issues on zero-values CRD cleanup / sanitizing Find & fix a bunch of CRD issues where go zero-value was conflicting with CRD default. The typical workaround is to use pointers or, for lists and maps, remove "omitempty". Add a test to help catch these issues Found issues: - portNamings.enable (this was the original issue) - portNamings.portNames (could not set empty list) - ebpf.interfaces and excludeInterfaces (e.g. could not set empty exclusion list) - processor.metrics.ignoreTags and disableAlerts (could not set empty ignoreTags) - processor.enableKubeProbles, dropUnusedFields (could not set false) - processor.kafkaConsumerReplicas (could not set 0) - loki.maxRetries (could not set 0) - loki.staticLabels (could not set empty list) - plugin.register (could not set false) - plugin.replicas (could not set 0) - plugin.quickFilters (could not set empry list) * Use pointer package
- Loading branch information
Showing
18 changed files
with
447 additions
and
72 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.