If a user is using kubernetes executor by setting HUB_DEPLOY_PROFILE="kubernetes" a stack deployment fails with the next error:
Running pre deploy hook: kubernetes
* Using kubeconfig:/home/igor_lysak/agilestacks/stacks_examples/simple-rancher/.hub/env/localhost.kubeconfig
* Checking connectivity to cluster: Connected
Proceeding with: deploy
* Using profile: kubernetes
* Running CLI command:
$ hubctl deploy /home/igor_lysak/agilestacks/stacks_examples/simple-rancher/.hub/localhost.elaborate -s /home/igor_lysak/agilestacks/stacks_examples/simple-rancher/.hub/localhost.state
2023/09/07 17:47:17 Unable to load state: file does not exist
Stack localhost not found
If a user is using
kubernetes
executor by settingHUB_DEPLOY_PROFILE="kubernetes"
a stack deployment fails with the next error:Steps to reproduce:
hub.yaml
:hubctl stack init
hubctl stack deploy
Actual result: Deploy is failing with an error Expected result: Deploy should be run in the Kubernetes cluster