utilities

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const HashLabelName = "utilities.operators.sample.ibm.com/hash"

Variables

This section is empty.

Functions

func AppendCondition

func AppendCondition(ctx context.Context, reconcilerClient client.Client, object client.Object,
	typeName string, status metav1.ConditionStatus, reason string, message string) error

func GetHashForSpec

func GetHashForSpec(specStruct interface{}) string

func GetHashFromLabels

func GetHashFromLabels(labels map[string]string) string

func SetHashToLabels

func SetHashToLabels(labels map[string]string, specHashActual string) map[string]string

Types

type ConditionsAware

type ConditionsAware interface {
	GetConditions() []metav1.Condition
	SetConditions(conditions []metav1.Condition)
}

Jump to

Keyboard shortcuts

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