charts/teleport-kube-agent/tests/pdb_test.yaml
2023-09-09 15:54:27 +08:00

27 lines
658 B
YAML

suite: PodDisruptionBudget
templates:
- pdb.yaml
tests:
- it: should create a PDB when enabled in values (pdb.yaml)
values:
- ../.lint/pdb.yaml
asserts:
- hasDocuments:
count: 1
- isKind:
of: PodDisruptionBudget
- matchSnapshot: {}
- it: sets PodDisruptionBudget labels when specified
values:
- ../.lint/pdb.yaml
- ../.lint/extra-labels.yaml
asserts:
- equal:
path: metadata.labels.app\.kubernetes\.io/name
value: teleport-kube-agent
- equal:
path: metadata.labels.resource
value: poddisruptionbudget
- matchSnapshot: {}