-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dev/k3d-act-clean cleanup #3156
Conversation
- Clean up downstream clusters if FLEET_E2E_DS_CLUSTER_COUNT is set - Remove cleaning up any docker containers by name, including from nektos/act, therefore renaming k3d-act-clean to k3d-clean.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM :)
if [[ $i -ne 1 ]]; then | ||
cluster="${cluster}${i}" | ||
fi | ||
k3d cluster create "${cluster}" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would omit the curlies, not needed for variable expansion or to protect the name 🤷
@@ -7,7 +7,7 @@ export CUSTOM_CONFIG_FILE="env.single-cluster" | |||
source ./dev/setup-cluster-config | |||
|
|||
# Cleans with settings sourced, so it should be rather selective. | |||
./dev/k3d-act-clean | |||
./dev/k3d-clean | |||
|
|||
RANDOM_PORT=0 | |||
if [ -z ${external_ip} ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Always guard against globbing and word splitting.
if [ -z ${external_ip} ]; | |
if [ -z "$external_ip" ]; |
nektos/act, therefore renaming k3d-act-clean to k3d-clean.
Follow-up for #3139