mirror of
https://github.com/FairwindsOps/polaris.git
synced 2026-05-16 06:07:18 +00:00
* added fix command * update fix command to walk through the folder to find all files * added ability to add comment * fix comment prefix * trim whitespaces to the line * refactor update mutated file * remove filepath as is not needed anymore * remove filepath as is not needed anymore * remove timestamp and status if creation is null * added comments and fix tests * remove hardcoded mutation in config * revert comment deletion * separate mutated to success files * read multiple resources in a file and update both * Remove mutation in config.yaml
28 lines
686 B
YAML
28 lines
686 B
YAML
successMessage: Liveness probe is configured
|
|
failureMessage: Liveness probe should be configured
|
|
category: Reliability
|
|
controllers:
|
|
exclude:
|
|
- Job
|
|
- CronJob
|
|
containers:
|
|
exclude:
|
|
- initContainer
|
|
target: Container
|
|
schema:
|
|
'$schema': http://json-schema.org/draft-07/schema
|
|
type: object
|
|
required:
|
|
- livenessProbe
|
|
properties:
|
|
livenessProbe:
|
|
type: object
|
|
not:
|
|
const: null
|
|
mutations:
|
|
- op: add
|
|
path: /livenessProbe
|
|
value: {"exec": { "command": [ "cat", "/tmp/healthy" ] }, "initialDelaySeconds": 5, "periodSeconds": 5 }
|
|
comments:
|
|
- find: "livenessProbe:"
|
|
comment: "TODO: Change livenessProbe setting to reflect your health endpoints" |