tools/

directory
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2023 License: Apache-2.0

README

Introduction

tools for development and testing.

provisioner-cli

provisioner-cli provides a cli program that leverage the cluster provisioner package to create VPC, Subnet and Cluster and other necessary resources, and then deploy the cloud-api-adaptor operator to enable the function in the created cluster. Which is also used to upload a VM image to cloud vendor.

Build provisioner-cli

In the root directory of test/tools, run command as below to build the cli program:

make all

Program is generated: test/tools/caa-provisioner-cli. Optionally, BUILTIN_CLOUD_PROVIDERS could also be used to build the CLI for specific providers, like:

make BUILTIN_CLOUD_PROVIDERS="ibmcloud" all
Use provisioner-cli

In directory test/tools, run commands like:

export TEST_PODVM_IMAGE=${POD_IMAGE_FILE_PATH}
export LOG_LEVEL=${LOG_LEVEL}
export CLOUD_PROVIDER=${CLOUD_PROVIDER}
export TEST_PROVISION_FILE=${PROPERTIES_FILE_PATH}
export TEST_PROVISION="yes"
./caa-provisioner-cli -actions=${ACTION}

ACTION supports provision, deprovision and uploadimage.

Add a new provider support

ibmcloud, azure and libvirt providers are supported now, to add a new provider please add it in cluster provisioner package

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL