Open devShev opened 7 months ago
I had the same error, turned out that the Deployment
manifests was invalid (I had strategy
set to Recreate
directly instead of strategy.type: Recreate
).
It seems your deployment's .spec.template.spec.imagePullSecrets
is invalid: it should be an array of string and not an array of objects.
Unfortunately, it means that an invalid deployment is simply ignored by kube-linter so this is an issue on its own.
Edit: just wanted to add that I catched this issue with kubeconform.
After scanning a file, linter reports that it cannot find pods by labels, although the labels in the deploy and service are correct.
web.yaml