testutils

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfigMap

func NewConfigMap(name string, namespace string) *coreV1.ConfigMap

NewConfigMap creates a basic ConfigMap instance having the provided namespace and name

func NewDeployment

func NewDeployment(name string, namespace string) *appsV1.Deployment

NewDeployment is a helper to build a new Deployment instance

func NewIngress

func NewIngress(name string, namespace string) *networkV1.Ingress

NewIngress is a helper to build a new Ingress instance

func NewJob

func NewJob(name string, namespace string) *batchv1.Job

NewJob is a helper to build a new Job instance

func NewJobWithStatus added in v0.0.2

func NewJobWithStatus(name string, namespace string, status string) *batchv1.Job

NewJobWithStatus creates a job with a given condition

func NewNamespace

func NewNamespace(name string) *coreV1.Namespace

NewNamespace is a helper to build a new Namespace instance

func NewNodes

func NewNodes(name string) *coreV1.Node

NewNodes is a helper to build a new Node instance

func NewPersistentVolume

func NewPersistentVolume(name string) *coreV1.PersistentVolume

NewPersistentVolume is a helper to build a new PersistentVolume instance

func NewPersistentVolumeClaim

func NewPersistentVolumeClaim(name string, namespace string) *coreV1.PersistentVolumeClaim

NewPersistentVolumeClaim is a helper to build a new PersistentVolumeClaim instance

func NewPod

func NewPod(name string, namespace string) *coreV1.Pod

NewPod is a helper to build a new Pod instance

func NewPodWithStatus

func NewPodWithStatus(name string, namespace string, phase string) *coreV1.Pod

NewPodWithStatus is a helper for building Pods with a given Status

func NewSecret

func NewSecret(name string, namespace string) *coreV1.Secret

NewSecret is a helper to build a new Secret instance

func NewService

func NewService(name string, namespace string) *coreV1.Service

NewService is a helper to build a new Service instance

Types

This section is empty.

Jump to

Keyboard shortcuts

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