cluster

package
v0.0.0-...-381c2df Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClusterVariantGKE     = "gke"
	ClusterVariantVanilla = "vanilla"
)
View Source
const (
	RuntimeImageTagGKE     = "forestgagnon/kparanoid/local/gke-runtime:1"
	RuntimeImageTagVanilla = "forestgagnon/kparanoid/local/vanilla-runtime:1"
)

Variables

This section is empty.

Functions

func AddGKECluster

func AddGKECluster(name string) error

func AddVanillaCluster

func AddVanillaCluster(name string) error

func BuildGKERuntime

func BuildGKERuntime(c *ClusterConf) error

func BuildVanillaRuntime

func BuildVanillaRuntime(c *ClusterConf) error

func ClusterRuntimeImageTag

func ClusterRuntimeImageTag(c *ClusterConf) string

func ErrorIfMultipleKubectlContextsPossible

func ErrorIfMultipleKubectlContextsPossible(c *ClusterConf) error

func ExecClusterNonInteractive

func ExecClusterNonInteractive(clusterName string, execArgs []string) error

func GetAptKubectlVersion

func GetAptKubectlVersion(c *ClusterConf) string

func ListClusters

func ListClusters() ([]string, error)

func OpenClusterInteractiveSession

func OpenClusterInteractiveSession(clusterName string) error

func PrepareRuntimeForCluster

func PrepareRuntimeForCluster(c *ClusterConf) error

func PrintAvailableKubectlVersionsApt

func PrintAvailableKubectlVersionsApt() error

func RemoveClusterConfig

func RemoveClusterConfig(clusterName string) error

func RunContainerExec

func RunContainerExec(c *ClusterConf, execArgs []string) error

func RunContainerInteractive

func RunContainerInteractive(c *ClusterConf, args ...string) error

Types

type ClusterConf

type ClusterConf struct {
	Variant        string `json:"variant"`
	KubectlVersion string `json:"kubectlVersion"`
	Name           string `json:"-"`
}

func GetClusterConf

func GetClusterConf(clusterName string) (*ClusterConf, error)

func (*ClusterConf) EnsureRequiredContainerEnvFiles

func (c *ClusterConf) EnsureRequiredContainerEnvFiles() error

Jump to

Keyboard shortcuts

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