Skip to content

Commit ac4a153

Browse files
committed
Add terminationGracePeriodSeconds example
1 parent 16565ec commit ac4a153

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
sudo mv kubeval /usr/local/bin
1616
- name: check all yaml
1717
run: |
18-
comm -3 <(find . | grep yaml$ | sort) <(cat .kubeval-ignore | sort) | xargs -n1 kubeval | tee -a apply.txt
18+
comm -3 <(find . | grep yaml$ | sort) <(cat .kubeval-ignore | sort) | xargs -n1 kubeval --strict | tee -a apply.txt
1919
- name: upload artifact
2020
uses: actions/upload-artifact@v2
2121
with:
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
apiVersion: v1
3+
kind: Pod
4+
metadata:
5+
name: pods-termination-grace-period-seconds
6+
spec:
7+
containers:
8+
- command:
9+
- sleep
10+
- "3600"
11+
image: busybox
12+
name: pods-termination-grace-period-seconds
13+
terminationGracePeriodSeconds: 5 # Time to wait before moving from a TERM signal to the pod's main process to a KILL signal.

0 commit comments

Comments
 (0)