Skip to content

Commit

Permalink
test(pdb-minavailable-check): fix test-bugs after #800
Browse files Browse the repository at this point in the history
Signed-off-by: Erik Godding Boye <[email protected]>
  • Loading branch information
erikgb committed Nov 3, 2023
1 parent dca9803 commit 9a446b7
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions other/m-q/pdb-minavailable/ss-good.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,39 @@ metadata:
spec:
selector:
matchLabels:
app: bb1
app: busybox
replicas: 2
template:
metadata:
labels:
app: bb1
app: busybox
spec:
terminationGracePeriodSeconds: 10
containers:
- name: busbyox
image: busybox:1.35
---
# Workload is not in PDB namespace.
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: goodss02
spec:
selector:
matchLabels:
app: bb2
app: busybox
replicas: 1
template:
metadata:
labels:
app: bb2
app: busybox
spec:
terminationGracePeriodSeconds: 10
containers:
- name: busbyox
image: busybox:1.35
---
# Workload does not match PDB selector.
apiVersion: apps/v1
kind: StatefulSet
metadata:
Expand All @@ -45,34 +47,34 @@ metadata:
spec:
selector:
matchLabels:
app: bb3
app: bb
replicas: 1
template:
metadata:
labels:
app: bb3
app: bb
spec:
terminationGracePeriodSeconds: 10
containers:
- name: busbyox
image: busybox:1.35
---
# Workload has 0 replicas and is not in PDB namespace.
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: goodss04
namespace: pdb-minavailable-ns
spec:
selector:
matchLabels:
app: bb4
app: busybox
replicas: 0
template:
metadata:
labels:
app: bb4
app: busybox
spec:
terminationGracePeriodSeconds: 10
containers:
- name: busbyox
image: busybox:1.35
- name: busbyox
image: busybox:1.35

0 comments on commit 9a446b7

Please sign in to comment.