conditions

package
v1.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	KubeApiErrorReason      = "KubeApiError"
	DynatraceApiErrorReason = "DynatraceApiError"
)
View Source
const (
	SecretCreatedReason    = "SecretCreated"
	SecretUpdatedReason    = "SecretUpdated"
	SecretOutdatedReason   = "SecretOutdated"
	SecretGenerationFailed = "SecretGenerationFailed"
)
View Source
const (
	ServiceCreatedReason    = "ServiceCreated"
	ServiceGenerationFailed = "ServiceGenerationFailed"
)
View Source
const (
	StatefulSetCreatedReason  = "StatefulSetCreated"
	StatefulSetOutdatedReason = "StatefulSetOutdated"
)
View Source
const (
	StatusUpdatedReason  = "StatusUpdated"
	StatusOutdatedReason = "StatusOutdated"
)

Variables

This section is empty.

Functions

func IsKubeApiError added in v1.3.0

func IsKubeApiError(err error) bool

func IsOutdated

func IsOutdated(timeProvider *timeprovider.Provider, dk *dynakube.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 SetStatusOutdated added in v1.3.0

func SetStatusOutdated(conditions *[]metav1.Condition, conditionType, msg string)

func SetStatusUpdated added in v1.3.0

func SetStatusUpdated(conditions *[]metav1.Condition, conditionType, msg string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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