key

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClusterLabel           = "giantswarm.io/cluster"
	ControlPlaneLabel      = "giantswarm.io/control-plane"
	MachineDeploymentLabel = "giantswarm.io/machine-deployment"
)

Variables

View Source
var (
	DefaultMinHealthyPercentage  int64 = 90
	DefaultInstanceWarmupSeconds int64 = 0
)

Functions

func AWSAccountDetails

func AWSAccountDetails(ctx context.Context, client client.Client, cluster *infrastructurev1alpha3.AWSCluster) (string, string, error)

func CancelInstanceRefresh

func CancelInstanceRefresh(getter AnnotationsGetter) bool

func Cluster

func Cluster(getter LabelsGetter) string

func Controlplane

func Controlplane(getter LabelsGetter) string

func InstanceRefresh

func InstanceRefresh(getter AnnotationsGetter) bool

func InstanceWarmupSeconds added in v0.3.0

func InstanceWarmupSeconds(getter AnnotationsGetter) (int64, error)

func MachineDeployment

func MachineDeployment(getter LabelsGetter) string

func MinHealthyPercentage

func MinHealthyPercentage(getter AnnotationsGetter) (int64, error)

Types

type AnnotationsGetter

type AnnotationsGetter interface {
	GetAnnotations() map[string]string
}

type LabelsGetter

type LabelsGetter interface {
	GetLabels() map[string]string
}

Jump to

Keyboard shortcuts

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