File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -151,11 +151,13 @@ deactivate () {
151151 # Restore LIMA_HOME to its original state (set or unset)
152152 [[ -n "$__OLD_LIMA_HOME" ]] && export LIMA_HOME="$__OLD_LIMA_HOME" || unset LIMA_HOME
153153 [[ -n "$__OLD_KUBECONFIG" ]] && export KUBECONFIG="$__OLD_KUBECONFIG" || unset KUBECONFIG
154+ [[ -n "$__OLD_ADMIN_PASSWORD" ]] && export AGENTSTACK__ADMIN_PASSWORD="$__OLD_ADMIN_PASSWORD" || unset AGENTSTACK__ADMIN_PASSWORD
154155
155156 # Clean up the backup values
156157 unset __OLD_PS1
157158 unset __OLD_LIMA_HOME
158159 unset __OLD_KUBECONFIG
160+ unset __OLD_ADMIN_PASSWORD
159161 unset -f deactivate
160162 echo "Environment for '$VM_NAME' deactivated."
161163}
@@ -170,9 +172,11 @@ echo "Activating environment for '$VM_NAME'..."
170172export __OLD_PS1="$PS1"
171173export __OLD_LIMA_HOME="$LIMA_HOME"
172174export __OLD_KUBECONFIG="$KUBECONFIG"
175+ export __OLD_ADMIN_PASSWORD="$AGENTSTACK__ADMIN_PASSWORD"
173176
174177export KUBECONFIG="${AGENTSTACK__HOME:-${HOME}/.agentstack}/lima/${VM_NAME}/copied-from-guest/kubeconfig.yaml"
175178export LIMA_HOME=${AGENTSTACK__HOME:-${HOME}/.agentstack}/lima
179+ export AGENTSTACK__ADMIN_PASSWORD=test-password
176180export PS1="(${VM_NAME}) ${__OLD_PS1}"
177181
178182"""
You can’t perform that action at this time.
0 commit comments