utils

package
v0.0.0-...-d50d299 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommonEventFilter

func CommonEventFilter() predicate.Funcs

func GetCertificateSecret

func GetCertificateSecret(cli client.Client, ctx context.Context, namespace string, certificate *configv2.PublicCertificate, secret *k8sv1.Secret) error

func GetRequeueResult

func GetRequeueResult() ctrl.Result

func GetUserSecret

func GetUserSecret(cli client.Client, ctx context.Context, namespace string, auth *configv2.UsernamePasswordAuthentication, secret *k8sv1.Secret) error

func RecordError

func RecordError(recorder record.EventRecorder, errorEvent ErrorEvent)

func RecordEventAndReturn

func RecordEventAndReturn(res ctrl.Result, err error, recorder record.EventRecorder, event Event) (ctrl.Result, error)

func RecordSuccess

func RecordSuccess(recorder record.EventRecorder, event Event)

Types

type ErrorEvent

type ErrorEvent struct {
	Event
	Err error
}

type Event

type Event struct {
	Object  runtime.Object
	Name    string
	Reason  string
	Message string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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