Skip to content

Commit

Permalink
test(pdb-minavailable-check): fix test-bugs after kyverno#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 3b92ec7
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 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,32 +47,32 @@ 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:
Expand Down

0 comments on commit 3b92ec7

Please sign in to comment.