helper

package
v0.10.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

The helper package provides builders to instantiate Kubernetes objects used in integration tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeploymentBuilder

type DeploymentBuilder struct {
	// contains filtered or unexported fields
}

func NewDeployment

func NewDeployment() *DeploymentBuilder

func (*DeploymentBuilder) Build

func (b *DeploymentBuilder) Build() *appsv1.Deployment

func (*DeploymentBuilder) WithContainer

func (b *DeploymentBuilder) WithContainer(name, image string) *DeploymentBuilder

func (*DeploymentBuilder) WithName

func (b *DeploymentBuilder) WithName(name string) *DeploymentBuilder

func (*DeploymentBuilder) WithNamespace

func (b *DeploymentBuilder) WithNamespace(namespace string) *DeploymentBuilder

type PodBuilder

type PodBuilder struct {
	// contains filtered or unexported fields
}

func NewPod

func NewPod() *PodBuilder

func (*PodBuilder) Build

func (b *PodBuilder) Build() *corev1.Pod

func (*PodBuilder) WithContainer

func (b *PodBuilder) WithContainer(name, image string) *PodBuilder

func (*PodBuilder) WithImagePullSecret

func (b *PodBuilder) WithImagePullSecret(name string) *PodBuilder

func (*PodBuilder) WithName

func (b *PodBuilder) WithName(name string) *PodBuilder

func (*PodBuilder) WithNamespace

func (b *PodBuilder) WithNamespace(namespace string) *PodBuilder

type VulnerabilityReportBuilder

type VulnerabilityReportBuilder struct {
	// contains filtered or unexported fields
}

func NewVulnerabilityReport

func NewVulnerabilityReport() *VulnerabilityReportBuilder

func (*VulnerabilityReportBuilder) Build

func (*VulnerabilityReportBuilder) WithName

func (*VulnerabilityReportBuilder) WithNamespace

func (b *VulnerabilityReportBuilder) WithNamespace(namespace string) *VulnerabilityReportBuilder

func (*VulnerabilityReportBuilder) WithOwnerKind

func (*VulnerabilityReportBuilder) WithOwnerName

Jump to

Keyboard shortcuts

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