mirror of
https://github.com/FairwindsOps/polaris.git
synced 2026-08-22 21:56:32 +00:00
* Bump lins * Code refactoring * Fixign issues * Fixing issues * Fixing issues * Fixing issues * [WIP] * [WIP] * [WIP] * Trying to fix tests * Trying to fix tests * Fixing issues * Fixing issues * Fixing issues * Fixing issues * Fixing issues * Fixing issues * Revert go mod * Revert go mod * Revert go mod * Revert go mod * Fixing issues * Fixing issue * Code refactoring * Updating json schema version * Updating json schema version
50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
successMessage: A PodDisruptionBudget is attached
|
|
failureMessage: Should have a PodDisruptionBudget
|
|
category: Reliability
|
|
target: Controller
|
|
controllers:
|
|
include:
|
|
- Deployment
|
|
schema:
|
|
"$schema": https://json-schema.org/draft/2019-09/schema#
|
|
type: object
|
|
required: [spec]
|
|
properties:
|
|
spec:
|
|
type: object
|
|
required: [template]
|
|
properties:
|
|
template:
|
|
type: object
|
|
required: [metadata]
|
|
properties:
|
|
metadata:
|
|
type: object
|
|
required: [labels]
|
|
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 := .spec.template.metadata.labels }}
|
|
- properties:
|
|
"{{ $key }}":
|
|
type: string
|
|
const: {{ $value }}
|
|
required: ["{{ $key }}"]
|
|
{{ end }}
|