utils

package
v1.0.2-0...-84e4af3 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKuberentesClient

func GetKuberentesClient() (client.Client, error)

func LoadRestConfig

func LoadRestConfig(context string) (*rest.Config, error)

func PtrFromVal

func PtrFromVal[T any](value T) *T

simple function allows to convert type to its pointer

func WithRetry

func WithRetry(utils *TestUtils, f func(utils *TestUtils) error) error

Types

type TestUtils

type TestUtils struct {
	Ctx    context.Context
	Logger *zap.SugaredLogger
	Client client.Client

	Namespace                string
	ServerlessName           string
	ServerlessCtrlDeployName string
	ServerlessRegistryName   string
	ServerlessUpdateSpec     v1alpha1.ServerlessSpec
}

Jump to

Keyboard shortcuts

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