testing

package
v0.0.0-...-b6ba7ab Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSVCAnnotation

func AddSVCAnnotation(key, value string) svcConfigOption

func AddSVCLabel

func AddSVCLabel(key, value string) svcConfigOption

func GenDeployment

func GenDeployment(name string, labels map[string]string) *appsv1.Deployment

func GenService

func GenService(name string, opts ...svcConfigOption) *corev1.Service

func SnapshotYaml

func SnapshotYaml(t *testing.T, objs ...interface{})

Types

type Resource

type Resource struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	Spec              interface{}
	Status            interface{}
}

Jump to

Keyboard shortcuts

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