common

package
v0.0.0-...-9a6dbc9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEvaluationDefinition

func GetEvaluationDefinition(k8sclient client.Client, log logr.Logger, ctx context.Context, definitionName string, namespace string) (*apilifecycle.KeptnEvaluationDefinition, error)

func GetItemStatus

func GetItemStatus(name string, instanceStatus []apilifecycle.ItemStatus) apilifecycle.ItemStatus

GetItemStatus retrieves the state of the task/evaluation, if it does not exists, it creates a default one

func GetOldStatus

func GetOldStatus(name string, statuses []apilifecycle.ItemStatus) apicommon.KeptnState

GetOldStatus retrieves the state of the task/evaluation

func GetRequestInfo

func GetRequestInfo(req ctrl.Request) map[string]string

GetRequestInfo extracts name and namespace from a controller request.

func GetTaskDefinition

func GetTaskDefinition(k8sclient client.Client, log logr.Logger, ctx context.Context, definitionName string, namespace string) (*apilifecycle.KeptnTaskDefinition, error)

func KeptnWorkloadVersionResourceRefUIDIndexFunc

func KeptnWorkloadVersionResourceRefUIDIndexFunc(rawObj client.Object) []string

func MergeMaps

func MergeMaps[M1 ~map[K]V, K comparable, V any](map1 M1, map2 M1) M1

Types

This section is empty.

Jump to

Keyboard shortcuts

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