Include kube-linter to check yaml files in our operators

Description

We should check out and possibly include in our operator pipelines https://github.com/stackrox/kube-linter

ATM it found couple of errors across our operators, like this one in PS:

 
╰─❯ kube-linter lint deploy/bundle.yaml
KubeLinter 0.6.4

deploy/bundle.yaml: (object: <no namespace>/percona-server-mysql-operator apps/v1, Kind=Deployment) container "manager" does not have a read-only root file system (check: no-read-only-root-fs, remediation: Set readOnlyRootFilesystem to true in the container securityContext.)

Error: found 1 lint errors
 

Environment

None

Activity

Show:

Details

Assignee

Reporter

Labels

Needs Review

Yes

Needs QA

Yes

Components

Priority

Smart Checklist

Created July 13, 2023 at 4:43 PM
Updated March 5, 2024 at 10:20 AM