Skip to content

Commit

Permalink
chore: add-ndots - add unique ns
Browse files Browse the repository at this point in the history
Signed-off-by: ShutingZhao <[email protected]>
  • Loading branch information
realshuting committed Sep 13, 2023
1 parent bda3bec commit bf1fe27
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions other/a/add-ndots/02-resources.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
apply:
- ns.yaml
- podcontroller-resources.yaml
- pod-resources.yaml
9 changes: 9 additions & 0 deletions other/a/add-ndots/04-cleanup.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
commands:
- command: kubectl delete deployment --all --force --grace-period=0 -n add-ndots
- command: kubectl delete cj --all --force --grace-period=0 -n add-ndots
- command: kubectl delete pod --all --force --grace-period=0 -n add-ndots
- command: kubectl delete cpol --all
- command: sleep 3
- command: kubectl delete ns add-ndots
4 changes: 4 additions & 0 deletions other/a/add-ndots/ns.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: add-ndots
2 changes: 2 additions & 0 deletions other/a/add-ndots/pod-resources-patched.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: v1
kind: Pod
metadata:
name: pod01
namespace: add-ndots
spec:
dnsConfig:
options:
Expand All @@ -15,6 +16,7 @@ apiVersion: v1
kind: Pod
metadata:
name: pod02
namespace: add-ndots
spec:
dnsConfig:
options:
Expand Down
2 changes: 2 additions & 0 deletions other/a/add-ndots/pod-resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: v1
kind: Pod
metadata:
name: pod01
namespace: add-ndots
spec:
containers:
- name: bb
Expand All @@ -11,6 +12,7 @@ apiVersion: v1
kind: Pod
metadata:
name: pod02
namespace: add-ndots
spec:
dnsConfig:
options:
Expand Down
2 changes: 2 additions & 0 deletions other/a/add-ndots/podcontroller-patched.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ metadata:
labels:
app: busybox
name: deployment01
namespace: add-ndots
spec:
replicas: 1
selector:
Expand All @@ -27,6 +28,7 @@ apiVersion: batch/v1
kind: CronJob
metadata:
name: cronjob01
namespace: add-ndots
spec:
schedule: "* * * * *"
jobTemplate:
Expand Down
2 changes: 2 additions & 0 deletions other/a/add-ndots/podcontroller-resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ metadata:
labels:
app: busybox
name: deployment01
namespace: add-ndots
spec:
replicas: 1
selector:
Expand All @@ -27,6 +28,7 @@ apiVersion: batch/v1
kind: CronJob
metadata:
name: cronjob01
namespace: add-ndots
spec:
schedule: "* * * * *"
jobTemplate:
Expand Down

0 comments on commit bf1fe27

Please sign in to comment.