cluster

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCluster

func CreateCluster(cluster *infrav3.Cluster) error

Update cluster takes the updated cluster details and sends it to the core

func DeleteCluster

func DeleteCluster(name, project string) error

func GetBootstrapFile

func GetBootstrapFile(name, project string) (string, error)

GetBootstrapFile will retrieve the bootstrap file for imported clusters

func GetCluster

func GetCluster(name, project string) (*infrav3.Cluster, error)

GetCluster gets an cluster based on the name provided. It calls ListAllClusters, and scan through the list for the name of the cluster. Returns nil if such addon does not exist, or returns an error if there was and error fetching all of the addons

func ListAllClusters

func ListAllClusters(projectId string) ([]*infrav3.Cluster, error)

ListAllClusters uses the lower level func ListClusters to retrieve a list of all clusters

func ListClusters

func ListClusters(project string, limit, offset int) ([]*infrav3.Cluster, int, error)

ListClusters paginates through a list of clusters

func NewImportCluster

func NewImportCluster(name, location, project string) (string, error)

NewImportCluster will create a new cluster of type import

func NewImportClusterAKS

func NewImportClusterAKS(name, location, project string) (string, error)

NewImportClusterAKS will create a new cluster of type import

func NewImportClusterGKE

func NewImportClusterGKE(name, location, project string) (string, error)

NewImportClusterGKE will create a new cluster of type import

func NewImportClusterMKS

func NewImportClusterMKS(name, location, project, K8Sversion, OsVersion, defaultStorageClass string, Storageclassmap map[string]string) (string, error)

func NewImportClusterOpenshift

func NewImportClusterOpenshift(name, location, project string) (string, error)

NewImportClusterOpenshift will create a new cluster of type import

func UpdateCluster

func UpdateCluster(cluster *infrav3.Cluster) error

Update cluster takes the updated cluster details and sends it to the core

Types

This section is empty.

Jump to

Keyboard shortcuts

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