kf

package
v2.11.26 Latest Latest
Warning

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

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

Documentation

Overview

Package kf contains shared code for all versions of Kf dealing with the underlying Kubernetes infrastructure it uses.

It is above any versioned directory so multiple versions can be upgraded simultaneously as back-end definitions change.

Index

Constants

View Source
const (
	GroupName = "kf.dev"
)

GroupName is the group name used in this package

Variables

This section is empty.

Functions

func ErrDuplicateValue

func ErrDuplicateValue(value interface{}, fieldPaths ...string) *apis.FieldError

ErrDuplicateValue creates a FieldError that indicates a value must not be duplicated.

func ValidateContainer

func ValidateContainer(container corev1.Container) *apis.FieldError

ValidateContainer performs a deep validation that the Container matches Kf's expectations.

func ValidateContainerEnv

func ValidateContainerEnv(env corev1.EnvVar) *apis.FieldError

ValidateContainerEnv performs a deep validation that the Environment Variable matches Kf's expectations.

func ValidateContainerPort

func ValidateContainerPort(port corev1.ContainerPort) *apis.FieldError

ValidateContainerPort validates a specific port.

func ValidateContainerPortsArray

func ValidateContainerPortsArray(ports []corev1.ContainerPort) (errs *apis.FieldError)

ValidateContainerPortsArray performs a deep validation that the Port matches Kf's expectations.

func ValidateContainerProbe

func ValidateContainerProbe(probe *corev1.Probe) *apis.FieldError

ValidateContainerProbe performs a deep validation that the probe matches Kf's expectations.

func ValidateContainerResources

func ValidateContainerResources(requirements corev1.ResourceRequirements) *apis.FieldError

ValidateContainerResources performs a deep validation that the quota matches Kf's expectations.

func ValidatePodSpec

func ValidatePodSpec(podSpec corev1.PodSpec) *apis.FieldError

ValidatePodSpec performs a deep validation that the PodSpec matches Kf's expectations.

func ValidatePortNumberBounds

func ValidatePortNumberBounds(port int32, fieldName string) *apis.FieldError

ValidatePortNumberBounds checks that the given port number is within acceptable ranges for a port.

Types

This section is empty.

Directories

Path Synopsis
Package config holds the typed objects that define the schemas for assorted ConfigMap objects on which Kf depends
Package config holds the typed objects that define the schemas for assorted ConfigMap objects on which Kf depends

Jump to

Keyboard shortcuts

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