polaris: Check metadataAndNameMismatched not found
Installation Process
Docker
Polaris Version
3.2.1
Expected Behavior
Expected audit to run
Actual Behavior
WARN[0000] An error occurred validating controller:Check metadataAndNameMismatched not found
ERRO[0000] Error while running audit on resources: Check metadataAndNameMismatched not found
Steps to Reproduce
docker run -ti \
-v "$PWD/pwd" -v ~/github/k8s:/k8s \
-v ~/.kube/config:/opt/app/config:ro \
quay.io/fairwinds/polaris:3.2.1 polaris audit \
--kubeconfig /opt/app/config \
--audit-path /pwd \
--config /k8s/polaris-config.yaml \
-f pretty --only-show-failed-tests
WARN[0000] An error occurred validating controller:Check metadataAndNameMismatched not found
ERRO[0000] Error while running audit on resources: Check metadataAndNameMismatched not found
The config file I am using is copied from here:
https://raw.githubusercontent.com/FairwindsOps/polaris/master/examples/config.yaml
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 17 (9 by maintainers)
Ah yes, that command works when I update the docker image version back up to 4.0.7 - probably there needs to be some doc showing which tests are available in which version or perhaps the sample config file could be commented with which version each check is available from?
That might avoid this question coming up because users would be able to compare their version with the comments in the sample config file.
Also, ideally if Polaris just ran all available checks without having to list them all in a config file when overriding just one or two, then that would dramatically shorten and simplify the config file in use and mostly avoid these sorts of config vs version errors? I raised #672 with this suggestion earlier today.
Thanks for the help!