Skip to content

Commit

Permalink
fix: added replacing system-x-critial replacement
Browse files Browse the repository at this point in the history
- this was added for being able to run the ct install / upgrade behaviour
so that we also can test with that priorityClassName set pods, that normally get a
system-node critial or system-cluster-critical priorityClassName set.
These only will be allowed to run in namespace kube-system and that for
we need to drop the priorityClassName here to null for our tests.
  • Loading branch information
sebbrandt87 committed Mar 19, 2020
1 parent b021cb0 commit 5265e53
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/e2e-kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ install_dummylb() {
echo
}

replace_priority_class_name_system_x_critical() {
echo 'Replacing priorityClassName: system-X-critical'
grep -rl "priorityClassName: system-" . | xargs sed -i 's/system-.*-critical/null/g'
echo
}

main() {
run_ct_container "$1"
shift
Expand All @@ -140,6 +146,7 @@ main() {
install_tiller
install_dummylb
install_certmanager
replace_priority_class_name_system_x_critical

docker_exec ct lint-and-install --upgrade --debug "$@"
echo
Expand Down

0 comments on commit 5265e53

Please sign in to comment.