mirror of
https://github.com/FairwindsOps/polaris.git
synced 2026-05-07 01:36:41 +00:00
* able to run multi-resource tests * start passing resource provider through * working end-to-end * better support for go templating * fix tests * delint * add test * add json annotations * remove panics * fix annotation * fix for groupkinds * add comment * add docs * change jsonSchema field to schemaString * rename check * add pdb to tests * add ingress to tests * update deps * fix up policy import * update go * fix check name * funk it up * better docs
40 lines
1017 B
YAML
40 lines
1017 B
YAML
successMessage: A PodDisruptionBudget is attached
|
|
failureMessage: Should have a PodDisruptionBudget
|
|
category: Reliability
|
|
target: Controller
|
|
controllers:
|
|
include:
|
|
- Deployment
|
|
schema:
|
|
'$schema': http://json-schema.org/draft-07/schema
|
|
type: object
|
|
properties:
|
|
metadata:
|
|
type: object
|
|
properties:
|
|
labels:
|
|
type: object
|
|
minProperties: 1
|
|
additionalSchemaStrings:
|
|
policy/PodDisruptionBudget: |
|
|
type: object
|
|
properties:
|
|
spec:
|
|
type: object
|
|
required: ["selector"]
|
|
properties:
|
|
selector:
|
|
type: object
|
|
required: ["matchLabels"]
|
|
properties:
|
|
matchLabels:
|
|
type: object
|
|
anyOf:
|
|
{{ range $key, $value := .metadata.labels }}
|
|
- properties:
|
|
"{{ $key }}":
|
|
type: string
|
|
const: {{ $value }}
|
|
required: ["{{ $key }}"]
|
|
{{ end }}
|