utils

package
v0.0.0-...-3794c23 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelModuleReference          = "charlecd.io/module-reference"
	LabelModuleReferenceNamespace = "charlecd.io/module-reference-namespace"
	LabelCircleOwner              = "charlecd.io/circle-owner"
	LabelCircleOwnerNamespace     = "charlecd.io/circle-owner-namespace"
	LabelManagedBy                = "app.kubernetes.io/managed-by"

	ManagedBy = "charlescd.io"
)

Variables

This section is empty.

Functions

func GetObjectKeyByPath

func GetObjectKeyByPath(path string) client.ObjectKey

func MessageToStruct

func MessageToStruct(message proto.Message, obj *interface{}) error

func StructToMessage

func StructToMessage(obj interface{}, message proto.Message) error

func UpdateObjectStatusWithDefaultRetry

func UpdateObjectStatusWithDefaultRetry(ctx context.Context, client client.Client, object client.Object) error

func UpdateObjectWithDefaultRetry

func UpdateObjectWithDefaultRetry(ctx context.Context, client client.Client, object client.Object) error

Types

type ResourceInfo

type ResourceInfo struct {
	ModuleReference          string
	ModuleReferenceNamespace string
	CircleOwner              string
	CircleOwnerNamespace     string
	ManagedBy                string
}

Jump to

Keyboard shortcuts

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