디렉토리 구조 및 각 서비스 추가
This commit is contained in:
23
helm/teleport-cluster/tests/auth_pdb_test.yaml
Normal file
23
helm/teleport-cluster/tests/auth_pdb_test.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
suite: Auth PodDisruptionBudget
|
||||
templates:
|
||||
- auth/pdb.yaml
|
||||
tests:
|
||||
- it: not should create a PDB when disabled in values
|
||||
set:
|
||||
highAvailability:
|
||||
podDisruptionBudget:
|
||||
enabled: false
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 0
|
||||
- it: should create a PDB when enabled in values (pdb.yaml)
|
||||
values:
|
||||
- ../.lint/pdb.yaml
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 1
|
||||
- isKind:
|
||||
of: PodDisruptionBudget
|
||||
- equal:
|
||||
path: spec.minAvailable
|
||||
value: 2
|
||||
Reference in New Issue
Block a user