test

package
v1.27.16 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCertSecret

func CreateCertSecret(name, namespace string, dnsNames ...string) *corev1.Secret

CreateCertSecret creates a secret that is not signed by the certificate manager, making it useful for testing legacy operator secrets or secrets that are brought to the cluster by the customer.

func ExpectEnv

func ExpectEnv(env []v1.EnvVar, key, value string)

func ExpectGlobalAlertTemplateToBePopulated

func ExpectGlobalAlertTemplateToBePopulated(resource runtime.Object)

func ExpectGlobalReportType

func ExpectGlobalReportType(resource runtime.Object, name string)

func ExpectK8sServiceEpEnvVars

func ExpectK8sServiceEpEnvVars(podSpec corev1.PodSpec, host, port string)

func ExpectNoK8sServiceEpEnvVars added in v1.22.0

func ExpectNoK8sServiceEpEnvVars(podSpec corev1.PodSpec)

func ExpectResource

func ExpectResource(resource runtime.Object, name, ns, group, version, kind string)

func ExpectResourceInList added in v1.19.0

func ExpectResourceInList(objs []client.Object, name, ns, group, version, kind string)

func ExpectVolumeMount added in v1.25.2

func ExpectVolumeMount(vms []v1.VolumeMount, name, path string)

func GetContainer

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

func GetResource

func GetResource(resources []client.Object, name, ns, group, version, kind string) client.Object

Types

This section is empty.

Jump to

Keyboard shortcuts

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