test

package
v0.0.0-...-1d907cd Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ENVVarExists

func ENVVarExists(name string, vars []v1.EnvVar) bool

func GetConfigMap

func GetConfigMap(metadataName string, objects []client.Object) (v1.ConfigMap, error)

func GetContainer

func GetContainer(name string, containers []v1.Container) v1.Container

func GetDaemonSet

func GetDaemonSet(metadataName string, objects []client.Object) (appsv1.DaemonSet, error)

func GetDeployment

func GetDeployment(metadataName string, objects []client.Object) (appsv1.Deployment, error)

func GetENVValue

func GetENVValue(name string, vars []v1.EnvVar) string

func GetJob

func GetJob(metadataName string, objects []client.Object) (batchv1.Job, error)

func GetPersistentVolumeClaim

func GetPersistentVolumeClaim(metadataName string, objects []client.Object) (v1.PersistentVolumeClaim, error)

func GetSecret

func GetSecret(metadataName string, objects []client.Object) (v1.Secret, error)

func GetService

func GetService(metadataName string, objects []client.Object) (v1.Service, error)

func GetServiceAccount

func GetServiceAccount(metadataName string, objects []client.Object) (v1.ServiceAccount, error)

func GetStatefulSet

func GetStatefulSet(metadataName string, objects []client.Object) (appsv1.StatefulSet, error)

func RequireCommonLabels

func RequireCommonLabels(t *testing.T, objects []client.Object, appName, componentName, ns string)

func RequireEnv

func RequireEnv(t *testing.T, expectedValue string, name string, container v1.Container)

Types

This section is empty.

Jump to

Keyboard shortcuts

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