#!/usr/bin/env -S v -n -w -cg -gc none -cc tcc -d use_openssl -enable-globals run import incubaid.herolib.core.playcmds import incubaid.herolib.ui.console console.print_header('='*.repeat(80)) console.print_header('K3s Install/Uninstall Lifecycle Test') console.print_header('='*.repeat(80)) // ============================================================================ // PHASE 1: Install Master // ============================================================================ console.print_header('\n๐Ÿ“ฆ PHASE 1: Installing K3s Master') install_script := ' !!kubernetes_installer.configure name:"k3s_test" node_name:"test-master" !!kubernetes_installer.install_master name:"k3s_test" !!kubernetes_installer.start name:"k3s_test" ' playcmds.run(heroscript: install_script)! console.print_header('โœ… Installation completed!') // ============================================================================ // PHASE 2: Uninstall // ============================================================================ console.print_header('\n๐Ÿงน PHASE 2: Uninstalling K3s') uninstall_script := ' !!kubernetes_installer.configure name:"k3s_test" !!kubernetes_installer.destroy name:"k3s_test" ' playcmds.run(heroscript: uninstall_script)! console.print_header('โœ… Uninstallation completed!') console.print_header('\n' + '='.repeat(80)) console.print_header('โœ… FULL LIFECYCLE TEST COMPLETED!') console.print_header('='.repeat(80))