validator

package
v1.0.102 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(mode Mode, shellRunner shell.Runner) validator

New returns a new instance of a kubeconform Validator

Types

type Mode

type Mode int

Mode determinations behavior of the post-render manifest validation. Default is skip.

const (
	// Skip will skip performing any post render validation on k8s manifests
	Skip Mode = iota
	// Warn will print validation output but will not cause the render command to exit with error if problems are detected
	Warn
	// Fail will cause the render command to exit with an error code if validation errors are detected
	Fail
)

func FromString

func FromString(value string) (Mode, error)

func (Mode) String

func (m Mode) String() string

type Validator

type Validator interface {
	GetMode() Mode
	// contains filtered or unexported methods
}

Validator top level interfaced used by multirender to perform validation of all output files after the render has completed.

Jump to

Keyboard shortcuts

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