resources

package
v0.1.0-alpha.17 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterExists

func ClusterExists(name string, clientset simple.Clientset) (bool, error)

func DeleteCluster

func DeleteCluster(name string, clientset simple.Clientset) error

func GetKubeConfig

func GetKubeConfig(name string, clientset simple.Clientset) (*kubeconfig.KubeconfigBuilder, error)

Types

type Cluster

type Cluster struct {
	// The cluster name
	Name string
	// The cluster admin ssh key
	AdminSshKey string
	kops.ClusterSpec
	// InstanceGroup defines the list of instance groups making the cluster
	InstanceGroup []*InstanceGroup
	// KubeConfig holds the necessary information to connect to the cluster
	KubeConfig *kube.Config
}

Cluster defines the configuration for a cluster It includes cluster instance groups.

func GetCluster

func GetCluster(name string, clientset simple.Clientset) (*Cluster, error)

func SyncCluster

func SyncCluster(cluster *Cluster, clientset simple.Clientset, ruo config.RollingUpdate, vo config.Validate) (*Cluster, error)

type InstanceGroup

type InstanceGroup struct {
	// Instance group name
	Name string
	kops.InstanceGroupSpec
}

InstanceGroup represents a group of instances (either nodes or masters) with the same configuration

Jump to

Keyboard shortcuts

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