Documentation ¶
Index ¶
- Constants
- Variables
- func BuilderClient(t *testing.T, project string) client.Client
- func ClientAndProject(t *testing.T) (client.Client, *v1.ProjectInstance)
- func EnableFeatureWithRestore(t *testing.T, ctx context.Context, kclient kclient.WithWatch, feature string)
- func EncryptData(t *testing.T, client client.Client, keys []string, data string) string
- func EnsureCRDs(t *testing.T)
- func EnsureDoesNotExist(ctx context.Context, getter func() (client.Object, error)) error
- func GetCTX(t *testing.T) context.Context
- func GetEncryptionKeys(t *testing.T, clients []client.Client) []string
- func Must(err error)
- func MustReturn[T any](f func() (T, error)) T
- func SetIgnoreResourceRequirementsWithRestore(t *testing.T, ctx context.Context, kclient kclient.WithWatch)
- func StartAPI(t *testing.T) *rest.Config
- func StartController(t *testing.T)
- func StartRegistry(t *testing.T) (string, func())
- func Subset[V, W any, Z comparable](t *testing.T, first []V, second []W, firstLookup func(V) Z, ...) bool
- func TempProject(t *testing.T, client client.WithWatch) *v1.ProjectInstance
- func Wait[T client.Object](t *testing.T, watchFunc WatchFunc, list client.ObjectList, cb func(obj T) bool) T
- func WaitForObject[T client.Object](t *testing.T, watchFunc WatchFunc, list client.ObjectList, obj T, ...) T
- type WatchFunc
Constants ¶
View Source
const (
APIServerLocalCertPath = "apiserver.local.config"
)
Variables ¶
View Source
var (
WatchTimeoutSeconds int64 = 240
)
Functions ¶
func ClientAndProject ¶
func EnableFeatureWithRestore ¶ added in v0.9.0
func EncryptData ¶
func EnsureCRDs ¶
func EnsureDoesNotExist ¶
func MustReturn ¶
func SetIgnoreResourceRequirementsWithRestore ¶ added in v0.10.0
func StartController ¶
func StartRegistry ¶
func Subset ¶
func Subset[V, W any, Z comparable](t *testing.T, first []V, second []W, firstLookup func(V) Z, secondLookup func(W) Z) bool
Subset returns true if the first array is completely contained in the second array. There must be at least the same number of duplicate values in second as there are in first.
func TempProject ¶
func WaitForObject ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.