Skip to content
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

Merged
merged 2 commits into from
Dec 20, 2024
Merged

dev/k3d-act-clean cleanup #3156

merged 2 commits into from
Dec 20, 2024

Conversation

p-se
Copy link
Contributor

@p-se p-se commented Dec 18, 2024

  • 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.

Follow-up for #3139

- 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.
@p-se p-se marked this pull request as ready for review December 18, 2024 10:55
@p-se p-se requested a review from a team as a code owner December 18, 2024 10:55
Copy link
Contributor

@weyfonk weyfonk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

@kkaempf kkaempf added this to the v2.11.0 milestone Dec 19, 2024
if [[ $i -ne 1 ]]; then
cluster="${cluster}${i}"
fi
k3d cluster create "${cluster}" \
Copy link
Member

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} ];
Copy link
Member

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.

Suggested change
if [ -z ${external_ip} ];
if [ -z "$external_ip" ];

@manno manno merged commit e1ad649 into rancher:main Dec 20, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants