Skip to content

Commit

Permalink
Label the nodes to target for the chaos hog in prow
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyaenr committed Jul 22, 2023
1 parent a8fbdd0 commit 9d9fab0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions prow/cpu-hog/prow_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ oc config view
echo "Printing node info"
for node in $(oc get nodes | awk 'NR!=1{print $1}'); do oc get node/$node -o yaml; done

# Label the nodes to target
for node in $(oc get nodes --selector="node-role.kubernetes.io/worker=" | awk ' NR>1 {print $1}'); do oc label node/$node chaos-hog=true; done

source node-cpu-hog/env.sh
source env.sh
source common_run.sh
Expand Down
3 changes: 3 additions & 0 deletions prow/memory-hog/prow_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ oc config view
echo "Printing node info"
for node in $(oc get nodes | awk 'NR!=1{print $1}'); do oc get node/$node -o yaml; done

# Label the nodes to target
for node in $(oc get nodes --selector="node-role.kubernetes.io/worker=" | awk ' NR>1 {print $1}'); do oc label node/$node chaos-hog=true; done

source node-memory-hog/env.sh
source env.sh
source common_run.sh
Expand Down

0 comments on commit 9d9fab0

Please sign in to comment.