capi

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CNIurl string = "https://docs.projectcalico.org/v3.20/manifests/calico.yaml"
View Source
var KubernetesVersion string = "v1.23.3"

Functions

func CreateAwsK8sInstance

func CreateAwsK8sInstance(kindkconfig string, clusterName *string, workdir string, awscreds map[string]string, capicfg string, createHaCluster bool, skipCloudFormation bool) (bool, error)

CreateAwsK8sInstance creates a Kubernetes cluster on AWS using CAPI and CAPI-AWS

func CreateAzureK8sInstance added in v0.0.6

func CreateAzureK8sInstance(kindkconfig string, clusterName *string, workdir string, azureCredsMap map[string]string, capicfg string, createHaCluster bool) (bool, error)

func CreateDevelK8sInstance

func CreateDevelK8sInstance(kindkconfig string, clusterName *string, workdir string, capicfg string, createHaCluster bool) (bool, error)

CreateDevelK8sInstance creates a K8S cluster on Docker

func DeleteCluster

func DeleteCluster(cfg string, name string) (bool, error)

DeleteCluster deletes the given capi managed cluster

func DoSSA

func DoSSA(ctx context.Context, cfg *rest.Config, yaml string) error

DoSSA does service side apply with the given YAML

func MoveAzureSecrets added in v0.0.6

func MoveAzureSecrets(src string, dest string) (bool, error)

CopyAzureSecrets

func MoveMgmtCluster

func MoveMgmtCluster(src string, dest string, capiImplementation string) (bool, error)

MoveMgmtCluster moves the management cluster from src kubeconfig to dest kubeconfig

func WaitForDeletion

func WaitForDeletion(dynclient client.Client, obj client.Object, retryInterval, timeout time.Duration) error

WaitForDeletion waits for the resouce to be deleted func WaitForDeletion(dynclient client.Client, obj runtime.Object, retryInterval, timeout time.Duration) error {

Types

This section is empty.

Jump to

Keyboard shortcuts

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