k8sjob

package
v2.13.2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 31 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Verifier

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

Verifier verifies deployments using kubernetes libs/CLI.

func NewVerifier

func NewVerifier(ctx context.Context, cfg kubectl.Config, labeller *label.DefaultLabeller, testCases []*latest.VerifyTestCase, artifacts []*latest.Artifact, envMap map[string]string, defaultNamespace string) (*Verifier, error)

NewVerifier returns a new Verifier for a VerifyConfig filled with the needed configuration for `kubectl apply`

func (*Verifier) Cleanup

func (v *Verifier) Cleanup(ctx context.Context, out io.Writer, dryRun bool) error

Cleanup deletes what was verified by calling Verify.

func (*Verifier) ConfigName

func (v *Verifier) ConfigName() string

func (*Verifier) Dependencies

func (v *Verifier) Dependencies() ([]string, error)

Dependencies lists all the files that describe what needs to be verified.

func (*Verifier) GetLogger

func (v *Verifier) GetLogger() log.Logger

func (*Verifier) GetStatusMonitor

func (v *Verifier) GetStatusMonitor() status.Monitor

func (*Verifier) RegisterLocalImages

func (v *Verifier) RegisterLocalImages(images []graph.Artifact)

func (*Verifier) TrackBuildArtifacts

func (v *Verifier) TrackBuildArtifacts(artifacts []graph.Artifact)

func (*Verifier) TrackContainerAndJobFromBuild

func (v *Verifier) TrackContainerAndJobFromBuild(artifact graph.Artifact, container tracker.Job, job *batchv1.Job)

TrackContainerAndJobFromBuild adds an artifact and its newly-associated container to the container tracker.

func (*Verifier) Verify

func (v *Verifier) Verify(ctx context.Context, out io.Writer, allbuilds []graph.Artifact) error

Verify executes specified artifacts by creating kubernetes Jobs for each image in the specified kubernetes cluster, executing them, and waiting for execution to complete.

Jump to

Keyboard shortcuts

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