util

package
v0.30.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	E2ETestNameTag = "e2e.testName"
)

Variables

This section is empty.

Functions

func DecodeFile added in v0.23.0

func DecodeFile(file string, to client.Object, options ...clientObjectOption) (client.Object, error)

func Logf added in v0.22.0

func Logf(f string, v ...interface{})

func ObjectToJsonString added in v0.22.0

func ObjectToJsonString(obj interface{}) string

func ObjectToPrettyJsonString added in v0.22.0

func ObjectToPrettyJsonString(obj interface{}) string

func WithNamespace added in v0.23.0

func WithNamespace(namespace string) clientObjectOption

Types

type DeterminedE2EClient added in v0.22.0

type DeterminedE2EClient struct {
	*E2EKubeClient
}

DeterminedE2EClient wraps E2eClient calls in an Eventually assertion to keep trying or bail after some time if unsuccessful

func NewDeterminedClient added in v0.22.0

func NewDeterminedClient(e2eKubeClient *E2EKubeClient) *DeterminedE2EClient

func (*DeterminedE2EClient) Create added in v0.22.0

func (*DeterminedE2EClient) Delete added in v0.22.0

func (*DeterminedE2EClient) Patch added in v0.22.0

func (*DeterminedE2EClient) Update added in v0.22.0

type E2EKubeClient

type E2EKubeClient struct {
	k8scontrollerclient.Client
	// contains filtered or unexported fields
}

func NewK8sResourceManager

func NewK8sResourceManager(client k8scontrollerclient.Client) *E2EKubeClient

func (*E2EKubeClient) Create

func (*E2EKubeClient) Delete

func (*E2EKubeClient) GarbageCollectCRDs added in v0.22.0

func (m *E2EKubeClient) GarbageCollectCRDs() error

GarbageCollectCRDs deletes any CRD with a label like operatorframework.io/installed-alongside-* these are the result of operator installations by olm and tent to be left behind after an e2e test

func (*E2EKubeClient) Reset

func (m *E2EKubeClient) Reset() error

func (*E2EKubeClient) Update

type ResourceQueue

type ResourceQueue struct {
	// contains filtered or unexported fields
}

func NewResourceQueue

func NewResourceQueue() *ResourceQueue

func (*ResourceQueue) DequeueHead

func (q *ResourceQueue) DequeueHead() (k8scontrollerclient.Object, bool)

func (*ResourceQueue) DequeueTail

func (q *ResourceQueue) DequeueTail() (k8scontrollerclient.Object, bool)

func (*ResourceQueue) Enqueue

func (*ResourceQueue) EnqueueIgnoreExisting

func (q *ResourceQueue) EnqueueIgnoreExisting(obj k8scontrollerclient.Object)

func (*ResourceQueue) Length

func (q *ResourceQueue) Length() int

func (*ResourceQueue) RemoveIgnoreNotFound

func (q *ResourceQueue) RemoveIgnoreNotFound(obj k8scontrollerclient.Object)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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