mirror of
https://github.com/FairwindsOps/polaris.git
synced 2026-05-08 02:06:53 +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
37 lines
822 B
YAML
37 lines
822 B
YAML
successMessage: Memory requests are set
|
|
failureMessage: Memory requests should be set
|
|
category: Efficiency
|
|
target: Container
|
|
containers:
|
|
exclude:
|
|
- initContainer
|
|
schema:
|
|
'$schema': http://json-schema.org/draft-07/schema
|
|
type: object
|
|
required:
|
|
- resources
|
|
properties:
|
|
resources:
|
|
type: object
|
|
required:
|
|
- requests
|
|
properties:
|
|
requests:
|
|
type: object
|
|
required:
|
|
- memory
|
|
properties:
|
|
memory:
|
|
type: string
|
|
not:
|
|
const: ''
|
|
mutations:
|
|
- op: add
|
|
path: /resources/requests
|
|
value: {}
|
|
- op: add
|
|
path: /resources/requests/memory
|
|
value: "512Mi"
|
|
comments:
|
|
- find: "memory: 512Mi"
|
|
comment: "TODO: Set this to the amount of Memory you want to reserve for your workload" |