validation

package
v1.36.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateReplicatedPodResourceOverrides

func ValidateReplicatedPodResourceOverrides(overrides components.ReplicatedPodResourceOverrides, validateContainerFn ValidateContainer, validateInitContainerFn ValidateContainer) error

ValidateReplicatedPodResourceOverrides validates the given replicated pod resource overrides. validateContainerFn and validateInitContainerFn are used to validate the container overrides.

Types

type ValidateContainer

type ValidateContainer func(container corev1.Container) error

ValidateContainer is a function that validates the given container.

var NoContainersDefined ValidateContainer = func(container corev1.Container) error {
	return fmt.Errorf("container %q is invalid. No containers are expected", container.Name)
}

NoContainersDefined is a container validation function that is used when no container is expected.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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