Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(pdb-minavailable-check): fix test-bugs after #800 #802

Merged
merged 1 commit into from
Nov 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading