Skip to content

Commit

Permalink
update times
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Bugwadia <jim@nirmata.com>
  • Loading branch information
JimBugwadia committed Aug 28, 2024
1 parent 1d8de0c commit 59ce84d
Show file tree
Hide file tree
Showing 23 changed files with 31 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ spec:
- name: step-03
try:
- sleep:
duration: 10s
duration: 5s
- script:
content: |
if [ $(kubectl get pods -n prevent-naked-pods-ns | grep gooddeployment01 | wc -l) -gt 0 ]; then exit 0; else exit 1; fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
content: |
kubectl get configmap kyverno -n kyverno -o yaml | sed 's/\[Node\/\*,\*,\*\]//g' - | sed 's/\[Node,\*,\*\]//g' - | kubectl apply -f -
- sleep:
duration: 10s
duration: 5s
- name: step-02
try:
- apply:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
content: |
kubectl get configmap -n kyverno kyverno -o yaml | sed 's/\[Binding,\*,\*\]//g' | sed 's/\[Pod\/binding,\*,\*\]//g' | sed 's/\[Node\/\*,\*,\*\]//g' | sed 's/\[Node,\*,\*\]//g' | kubectl apply -f -
- sleep:
duration: 10s
duration: 5s
- name: step-02
try:
- apply:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ spec:
- name: step-03
try:
- sleep:
duration: 10s
duration: 5s
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
- name: step-03
try:
- sleep:
duration: 10s
duration: 5s
- script:
content: kubectl exec -n exec-event-ns execevent-pod -- ls /
- name: step-04
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
- name: step-03
try:
- sleep:
duration: 10s
duration: 5s
- name: step-04
try:
- script:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
- name: step-03
try:
- sleep:
duration: 10s
duration: 5s
- name: step-04
try:
- script:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
- name: step-03
try:
- sleep:
duration: 10s
duration: 5s
- name: step-04
try:
- script:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
- name: step-03
try:
- sleep:
duration: 10s
duration: 5s
- name: step-04
try:
- script:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
- name: step-03
try:
- sleep:
duration: 10s
duration: 5s
- name: step-04
try:
- script:
Expand Down
4 changes: 2 additions & 2 deletions other/block-stale-images/.chainsaw-test/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ spec:
- script:
content: kubectl delete cpol block-stale-images
- sleep:
duration: 10s
duration: 5s
- script:
content: kubectl delete all --all --force --grace-period=0 -n block-staleimg-ns
- sleep:
duration: 10s
duration: 5s
4 changes: 2 additions & 2 deletions other/label-nodes-cri/.chainsaw-test/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
content: |
kubectl get configmap kyverno -n kyverno -o yaml | sed 's/\[Node\/\*,\*,\*\]//g' - | sed 's/\[Node,\*,\*\]//g' - | kubectl apply -f -
- sleep:
duration: 10s
duration: 5s
- name: step-02
try:
- apply:
Expand All @@ -26,7 +26,7 @@ spec:
- name: step-03
try:
- sleep:
duration: 10s
duration: 5s
- script:
content: ./label-check.sh
- name: step-04
Expand Down
2 changes: 1 addition & 1 deletion other/mutate-pod-binding/.chainsaw-test/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
content: |
kubectl get configmap -n kyverno kyverno -o yaml | sed 's/\[Binding,\*,\*\]//g' | sed 's/\[Pod\/binding,\*,\*\]//g' | sed 's/\[Node\/\*,\*,\*\]//g' | sed 's/\[Node,\*,\*\]//g' | kubectl apply -f -
- sleep:
duration: 10s
duration: 5s
- name: step-02
try:
- apply:
Expand Down
2 changes: 1 addition & 1 deletion other/prevent-bare-pods/.chainsaw-test/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ spec:
- name: step-03
try:
- sleep:
duration: 10s
duration: 5s
- script:
content: |
if [ $(kubectl get pods -n prevent-naked-pods-ns | grep gooddeployment01 | wc -l) -gt 0 ]; then exit 0; else exit 1; fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
node=$(kubectl get nodes --no-headers | awk '{print $1}' | head -n 1)
kubectl taint nodes "$node" foo=bar:NoSchedule
- sleep:
duration: 10s
duration: 5s
- name: step-02
try:
- apply:
Expand Down
12 changes: 6 additions & 6 deletions other/refresh-env-var-in-pod/.chainsaw-test/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,22 @@ spec:
- name: step-03
try:
- sleep:
duration: 10s
duration: 5s
- script:
content: |
kubectl get pod -n refresh-env-var-ns --no-headers | awk '{print $1}' > deploy-names.txt
- name: step-04
try:
- sleep:
duration: 10s
duration: 5s
- apply:
file: chainsaw-step-04-apply-1.yaml
- apply:
file: chainsaw-step-04-apply-2.yaml
- name: step-05
try:
- sleep:
duration: 10s
duration: 5s
- script:
content: |
annotation=$(kubectl get deploy deployment01 -n refresh-env-var-ns -o json | kyverno jp query "spec.template.metadata.annotations.\"corp.org/random\" || '' " | tail -n 1 | cut -d '"' -f 2)
Expand All @@ -56,7 +56,7 @@ spec:
annotation=$(kubectl get deploy deployment03 -n refresh-env-var-ns -o json | kyverno jp query "spec.template.metadata.annotations.\"corp.org/random\" || '' " | tail -n 1 | cut -d '"' -f 2)
if [ "$annotation" = "1234abcd" ]; then exit 0; exit 1; fi
- sleep:
duration: 10s
duration: 5s
- script:
content: |
pod_one=$(kubectl get pod --no-headers -n refresh-env-var-ns | awk '{print $1}' | grep deployment01 | awk 'NR==1{print $1}')
Expand All @@ -73,7 +73,7 @@ spec:
exit 0;
fi
- sleep:
duration: 10s
duration: 5s
- script:
content: |
pod_one=$(kubectl get pod --no-headers -n refresh-env-var-ns | awk '{print $1}' | grep deployment02 | awk 'NR==1{print $1}')
Expand All @@ -90,7 +90,7 @@ spec:
exit 0;
fi
- sleep:
duration: 10s
duration: 5s
- script:
content: |
pod_one=$(kubectl get pod --no-headers -n refresh-env-var-ns | awk '{print $1}' | grep deployment03 | awk 'NR==1{print $1}')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
- name: step-04
try:
- sleep:
duration: 10s
duration: 5s
- script:
content: |
annotation=$(kubectl get pod pod01 -n refresh-vols-ns -o json | kyverno jp query "metadata.annotations.\"corp.org/random\" || '' " | tail -n 1 | cut -d '"' -f 2)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
- name: step-04
try:
- sleep:
duration: 10s
duration: 5s
- script:
content: |
annotation=$(kubectl get deployment -n default busybox -o json | kyverno jp query "spec.template.metadata.annotations.\"ops.corp.com\/triggerrestart\" || 'annotation-404' " | tail -n 1 | cut -d '"' -f 2)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
content: |
kubectl get configmap kyverno -n kyverno -o yaml | sed 's/\[Node\/\*,\*,\*\]//g' - | sed 's/\[Node,\*,\*\]//g' - | kubectl apply -f -
- sleep:
duration: 10s
duration: 5s
- name: step-02
try:
- apply:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
content: |
kubectl get configmap kyverno -n kyverno -o yaml | sed 's/\[Node\/\*,\*,\*\]//g' - | sed 's/\[Node,\*,\*\]//g' - | kubectl apply -f -
- sleep:
duration: 10s
duration: 5s
- name: step-02
try:
- apply:
Expand Down
4 changes: 2 additions & 2 deletions other/scale-deployment-zero/.chainsaw-test/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
content: |
kubectl get configmap -n kyverno kyverno -o yaml | sed 's/system\:nodes/system\:thisisjunk/g' | kubectl apply -f -
- sleep:
duration: 10s
duration: 5s
- name: step-02
try:
- apply:
Expand All @@ -41,4 +41,4 @@ spec:
content: |
kubectl get configmap -n kyverno kyverno -o yaml | sed 's/system\:thisisjunk/system\:nodes/g' | kubectl apply -f -
- sleep:
duration: 10s
duration: 5s
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ spec:
export KUBECONFIG=./temp
if kubectl --context=denyprivilegeduser-context create -f ns-bad.yaml; then exit 1; else exit 0; fi
- sleep:
duration: 10s
duration: 5s
finally:
- script:
content: kubectl delete -f ns-good.yaml --ignore-not-found
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ spec:
export KUBECONFIG=./temp
if kubectl --context=denyprivilegeduser-context create -f ns-bad.yaml; then exit 1; else exit 0; fi
- sleep:
duration: 10s
duration: 5s
finally:
- script:
content: kubectl delete -f ns-good.yaml --ignore-not-found
Expand Down

0 comments on commit 59ce84d

Please sign in to comment.