Closed jonathanmdr closed 4 months ago
Nice work! On the first look everything is fine but on second there is something missing.
- You correctly added keda to
extract
but it's never called in unit test- Could you add good/bad tests to verify it's really working
- You need to register keda scheme in https://github.com/stackrox/kube-linter/blob/e0225f476a85c4533eab934105c63f44e9d95a50/pkg/lintcontext/parse_yaml.go#L47
No related to this PR but we need to use
--fail-on-invalid-resource
in e2e as in your case it will highlight the errorpdb-min-available.yaml: (object: <no namespace>/ /, Kind=) failed to decode: no kind "ScaledObject" is registered for version "keda.sh/v1alpha1" in scheme "pkg/runtime/scheme.go:100" (check: failed-to-load-object, remediation: Confirm that the file is accessible and is valid k8s yaml.)
Well noted!
I adjusted my implementation and unit tests writing good/bad scenarios for this functionality!
If there's any other feedback, we're happy to follow up on it π
Nice, thank you. Could you rebase?
Nice, thank you. Could you rebase?
Sure, rebase applied!
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
cd1e926
) 72.36% compared to head (bf75310
) 72.37%.:exclamation: Current head bf75310 differs from pull request most recent head 4ef3f07. Consider uploading reports for the commit 4ef3f07 to get more accurate results
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@jonathanmdr Thanks! In the meantime dependabot updated k8s so I updated your PR.
I believe it provides support to pdb-min-available when the Replica number is controlled via Keda ScaledObject
I closed erroneously this PR: https://github.com/stackrox/kube-linter/pull/703