Files
troubleshoot/pkg/analyze
Chuck D'Antonio c4c66633e5 Includes virtual memory parameters in Sysctl (#874)
TL;DR
-----

Updates Sysctl collector and analyzer for virtual memory parameters

Details
-------

Adds supoort for virtual memory parameters to the Sysctl collector and
analyzers. I uncovered this writing a pre-flight for a Helm chart that
includes ECK as a subchart. Since ECK requires a specific minimum value
for `vm.max_map_count` I wanted to use the Sysctl analyzer to check for
the expected value, but wasn't able to because of the limited values it
collected. I also learned that Sonarqube expects the same parameter to
be increased, so it seemed like a general enough requirement to add it
in.

The code updates the collector to collect values under `/proc/sys/vm`
and adds tests to the analyzer to based on the ECK requirements. Making
the tests pass required adding operators to the when expression, since
the existing code only allowed for `=`, `==`, and `===`. The when
expression now supports `>`, `<`, `>=`, and `<=`.

All tests pass.
2022-11-29 12:32:59 -05:00
..
2022-06-28 13:04:10 -04:00
2021-01-28 18:22:48 +00:00
2022-09-08 15:10:53 +12:00
2021-01-28 18:22:48 +00:00
2021-01-28 18:22:48 +00:00
2020-09-23 15:10:54 -03:00
2021-01-28 18:22:48 +00:00
2021-07-06 08:42:12 -05:00
2020-09-01 19:57:11 +00:00
2022-07-18 11:09:23 +02:00
2021-04-09 16:17:15 +00:00
2021-04-09 16:17:15 +00:00