Integrate baremetal manager executor with manifest

Change-Id: Ib1b3c49c440363d37de4bd47ed6e940be22def40
This commit is contained in:
Kostiantyn Kalynovskyi 2021-01-26 03:54:48 +00:00
parent f0e80cfdc5
commit 26c37807ba
5 changed files with 38 additions and 6 deletions

View File

@ -169,3 +169,17 @@ bootstrapContainer:
image: quay.io/airshipit/capo-ephemeral:latest
volume: /tmp:/kube
saveKubeconfigFileName: capo.kubeconfig
---
apiVersion: airshipit.org/v1alpha1
kind: BaremetalManager
metadata:
name: RemoteDirectEphemeral
labels:
airshipit.org/deploy-k8s: "false"
spec:
operation: remote-direct
hostSelector:
name: REPLACE_ME
operationOptions:
remoteDirect:
isoURL: REPLACE_ME

View File

@ -236,3 +236,13 @@ config:
kind: GenericContainer
name: encrypter
documentEntryPoint: target/generator
---
apiVersion: airshipit.org/v1alpha1
kind: Phase
metadata:
name: remotedirect-ephemeral
config:
executorRef:
apiVersion: airshipit.org/v1alpha1
kind: BaremetalManager
name: RemoteDirectEphemeral

View File

@ -1,3 +1,6 @@
resources:
- ../kubeconfig
- ../../../phases
## TODO Consider making a catalogue combined with variable substitution instead
patchesStrategicMerge:
- phase-patch.yaml

View File

@ -0,0 +1,10 @@
apiVersion: airshipit.org/v1alpha1
kind: BaremetalManager
metadata:
name: RemoteDirectEphemeral
spec:
hostSelector:
name: node02
operationOptions:
remoteDirect:
isoURL: http://localhost:8099/ephemeral.iso

View File

@ -18,14 +18,9 @@ set -xe
export TIMEOUT=${TIMEOUT:-3600}
export KUBECONFIG=${KUBECONFIG:-"$HOME/.airship/kubeconfig"}
export KUBECONFIG_EPHEMERAL_CONTEXT=${KUBECONFIG_EPHEMERAL_CONTEXT:-"ephemeral-cluster"}
export EPHEMERAL_NODE=${EPHEMERAL_NODE:-"node02"}
export ISO_URL=${ISO_URL:-"http://localhost:8099/ephemeral.iso"}
echo "Deploy ephemeral node using redfish with iso"
airshipctl baremetal remotedirect \
--iso-url $ISO_URL \
--name $EPHEMERAL_NODE \
--debug
airshipctl phase run remotedirect-ephemeral --debug
echo "Wait for apiserver to become available"
N=0