conditions

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KubeApiErrorReason      = "KubeApiError"
	DynatraceApiErrorReason = "DynatraceApiError"
)
View Source
const (
	SecretCreatedReason  = "SecretCreated"
	SecretUpdatedReason  = "SecretUpdated"
	SecretOutdatedReason = "SecretOutdated"
)
View Source
const (
	StatefulSetCreatedReason  = "StatefulSetCreated"
	StatefulSetUpdatedReason  = "StatefulSetUpdated"
	StatefulSetOutdatedReason = "StatefulSetOutdated"
)

Variables

This section is empty.

Functions

func IsOutdated

func IsOutdated(timeProvider *timeprovider.Provider, dynakube *dynatracev1beta1.DynaKube, conditionType string) bool

IsOutdated determines if a given is considered outdated according to the DynaKube's FeatureApiRequestThreshold This is used for those conditions that are (also) used for limiting API requests.

func SetDynatraceApiError

func SetDynatraceApiError(conditions *[]metav1.Condition, conditionType string, err error)

func SetKubeApiError

func SetKubeApiError(conditions *[]metav1.Condition, conditionType string, err error)

func SetSecretCreated

func SetSecretCreated(conditions *[]metav1.Condition, conditionType, name string)

func SetSecretOutdated

func SetSecretOutdated(conditions *[]metav1.Condition, conditionType, message string)

func SetSecretUpdated

func SetSecretUpdated(conditions *[]metav1.Condition, conditionType, name string)

func SetStatefulSetCreated

func SetStatefulSetCreated(conditions *[]metav1.Condition, conditionType, name string)

func SetStatefulSetDeleted

func SetStatefulSetDeleted(conditions *[]metav1.Condition, conditionType, name string)

func SetStatefulSetOutdated

func SetStatefulSetOutdated(conditions *[]metav1.Condition, conditionType, name string)

func SetStatefulSetUpdated

func SetStatefulSetUpdated(conditions *[]metav1.Condition, conditionType, name string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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