Skip to content
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pkg/daemon/reset.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ func ResetNode(log *slog.Logger) phases.Task {
reset.CleanupMachine(log, goalstates.NSpawnMachineKube1),
reset.CleanupMachine(log, goalstates.NSpawnMachineKube2),
),
phases.Parallel(log,
Comment thread
bcho marked this conversation as resolved.
reset.RemoveNetworkInterfaces(log),
reset.RemoveWireGuardKeys(log),
),
reset.CleanupRoutes(log),
reset.ReloadSystemd(log),
config.RemoveRuntimeDirs(log),
Expand Down
6 changes: 4 additions & 2 deletions scripts/uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ confirm_uninstall() {
echo "• Configuration directory ($CONFIG_DIR)"
echo "• Data directory ($DATA_DIR)"
echo "• Log directory ($LOG_DIR)"
echo "• Host network state created by unbounded-net"
echo "• Azure CLI"
echo ""
echo -e "${YELLOW}NOTE: This will first run 'aks-flex-node reset' to clean up cluster and Arc resources.${NC}"
echo -e "${YELLOW}NOTE: This will first run 'aks-flex-node reset' to clean up cluster, Arc, and host network resources.${NC}"
Comment thread
bcho marked this conversation as resolved.
echo ""

# Always prompt for confirmation, even when piped
Expand All @@ -66,7 +67,7 @@ confirm_uninstall() {
}

run_reset() {
log_info "Running reset to clean up cluster and Arc resources..."
log_info "Running reset to clean up cluster, Arc, and host network resources..."

# Check if aks-flex-node binary exists
if [[ ! -f "$INSTALL_DIR/aks-flex-node" ]]; then
Expand Down Expand Up @@ -183,6 +184,7 @@ show_completion_message() {
echo "✅ Service user and permissions"
echo "✅ Configuration and data directories"
echo "✅ Log files"
echo "✅ Host network state"
Comment thread
bcho marked this conversation as resolved.
echo "✅ Azure CLI"
echo ""
echo -e "${GREEN}Complete uninstallation finished!${NC}"
Expand Down