Move deployment scripts from test-site to function

Change-Id: I35a83a4e3fbc60c0f25b3969d624bbc370f0a41b
This commit is contained in:
Vladislav Kuzmin 2021-04-01 19:20:28 +04:00 committed by Kostiantyn Kalynovskyi
parent ea534c379f
commit 892bb6a16d
7 changed files with 7 additions and 4 deletions

View File

@ -0,0 +1,2 @@
resources:
- wait_node

View File

@ -3,4 +3,4 @@ configMapGenerator:
options:
disableNameSuffixHash: true
files:
- script=kubectl_get_node.sh
- script=kubectl_wait_node.sh

View File

@ -5,6 +5,8 @@ resources:
- cluster-map.yaml
- ../function/clusterctl
- ../function/airshipctl-base-catalogues
# Scripts for generic containers
- ../function/phase-helpers
patchesStrategicMerge:
- clusterctl_init_options.yaml
transformers:

View File

@ -282,7 +282,7 @@ config:
apiVersion: airshipit.org/v1alpha1
kind: Phase
metadata:
name: kubectl-get-node-ephemeral
name: kubectl-wait-node-ephemeral
clusterName: ephemeral-cluster
config:
executorRef:

View File

@ -2,6 +2,5 @@ resources:
- ../kubeconfig
- ../../../phases
- catalogue.yaml
- helpers
transformers:
- ../../../function/bootstrap/replacements

View File

@ -23,7 +23,7 @@ echo "Deploy ephemeral node using redfish with iso"
airshipctl phase run remotedirect-ephemeral --debug
echo "Wait for apiserver to become available"
airshipctl phase run kubectl-get-node-ephemeral
airshipctl phase run kubectl-wait-node-ephemeral
echo "List all pods"
kubectl --kubeconfig $KUBECONFIG --context $KUBECONFIG_EPHEMERAL_CONTEXT get pods --all-namespaces