key

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

	InstanceRefreshAnnotation       = "alpha.giantswarm.io/instance-refresh"
	CancelInstanceRefreshAnnotation = "alpha.giantswarm.io/cancel-instance-refresh"
	MinHealthyPercentageAnnotation  = "alpha.giantswarm.io/instance-refresh-min-healhty-percentage"
)

Variables

View Source
var (
	DefaultMinHealthyPercentage int64 = 90
)

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 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