diff --git a/tools/deployment/34_deploy_controlplane_target.sh b/tools/deployment/34_deploy_controlplane_target.sh index 872777575..13d15c41d 100755 --- a/tools/deployment/34_deploy_controlplane_target.sh +++ b/tools/deployment/34_deploy_controlplane_target.sh @@ -14,24 +14,17 @@ set -ex -export KUBECONFIG=${KUBECONFIG:-"$HOME/.airship/kubeconfig"} -export KUBECONFIG_TARGET_CONTEXT=${KUBECONFIG_TARGET_CONTEXT:-"target-cluster"} - echo "Create target k8s cluster resources" airshipctl phase run controlplane-target --debug echo "List all nodes in target cluster" -kubectl \ - --kubeconfig $KUBECONFIG \ - --context $KUBECONFIG_TARGET_CONTEXT \ - --request-timeout 10s \ - get node - +# Scripts for this phase placed in manifests/function/phase-helpers/wait_node/ +# To get ConfigMap for this phase, execute `airshipctl phase render --source config -k ConfigMap` +# and find ConfigMap with name kubectl-get-node +airshipctl phase run kubectl-get-node-target --debug echo "List all pods in target cluster" -kubectl \ - --kubeconfig $KUBECONFIG \ - --context $KUBECONFIG_TARGET_CONTEXT \ - --request-timeout 10s \ - get pods \ - --all-namespaces +# Scripts for this phase placed in manifests/function/phase-helpers/get_pods/ +# To get ConfigMap for this phase, execute `airshipctl phase render --source config -k ConfigMap` +# and find ConfigMap with name kubectl-get-pods +airshipctl phase run kubectl-get-pods-target --debug