kube

package
v0.20.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AreValidk8sAnnotationNames

func AreValidk8sAnnotationNames(names ...string) []string

AreValidk8sAnnotationNames validates the given names against the kubernetes format for annotations and returns a slice of validation failure messages if any issues are found. Otherwise an empty slice is returned.

func AreValidk8sLabelNames

func AreValidk8sLabelNames(names ...string) []string

AreValidk8sLabelNames validates the given names against the kubernetes format for labels and returns a slice of validation failure messages if any issues are found. Otherwise an empty slice is returned.

func AreValidk8sNamespaceNames

func AreValidk8sNamespaceNames(names ...string) []string

AreValidk8sNamespaceNames validates the given names against the kubernetes format for namespaces and returns a slice of validation failure messages if any issues are found. Otherwise an empty slice is returned.

func IsValidk8sAnnotationName

func IsValidk8sAnnotationName(name string) string

IsValidk8sAnnotationName validates the given name against the kubernetes format for annotation names and returns a validation failure message if an issue is found. Otherwise an empty string is returned.

func IsValidk8sLabelName

func IsValidk8sLabelName(name string) string

IsValidk8sLabelName validates the given name against the kubernetes format for label names and returns a validation failure message if an issue is found. Otherwise an empty string is returned.

func IsValidk8sNamespaceName

func IsValidk8sNamespaceName(name string) string

IsValidk8sNamespaceName validates the given name against the kubernetes format for namespace names and returns a validation failure message if an issue is found. Otherwise an empty string is returned.

func IsValidk8sSecretName

func IsValidk8sSecretName(name string) string

IsValidk8sSecretName validates the given name against the kubernetes format for secret names and returns a validation failure message if an issue is found. Otherwise an empty string is returned.

Types

type DeploymentCheck added in v0.14.0

type DeploymentCheck func(appsv1.Deployment) DeploymentCheckResult

type DeploymentCheckResult added in v0.14.0

type DeploymentCheckResult struct {
	Success bool
	Reasons []string
}

func HasCPUResourceRequirements added in v0.14.0

func HasCPUResourceRequirements(d appsv1.Deployment) DeploymentCheckResult

func HasLivenessProbes added in v0.14.0

func HasLivenessProbes(d appsv1.Deployment) DeploymentCheckResult

func HasMemoryResourceRequirements added in v0.14.0

func HasMemoryResourceRequirements(d appsv1.Deployment) DeploymentCheckResult

func HasReadinessProbes added in v0.14.0

func HasReadinessProbes(d appsv1.Deployment) DeploymentCheckResult

func NewDeploymentCheckResult added in v0.14.0

func NewDeploymentCheckResult(reasons ...string) DeploymentCheckResult

func (DeploymentCheckResult) Join added in v0.14.0

type DeploymentCheckResultList added in v0.14.0

type DeploymentCheckResultList []DeploymentCheckResult

func (DeploymentCheckResultList) Reduce added in v0.14.0

type DeploymentLinter added in v0.14.0

type DeploymentLinter interface {
	Lint(d appsv1.Deployment) DeploymentCheckResult
}

type DeploymentLinterImpl added in v0.14.0

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

func NewDeploymentLinterImpl added in v0.14.0

func NewDeploymentLinterImpl(opts ...DeploymentLinterImplOption) *DeploymentLinterImpl

func (*DeploymentLinterImpl) Lint added in v0.14.0

type DeploymentLinterImplConfig added in v0.14.0

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

func (*DeploymentLinterImplConfig) Default added in v0.14.0

func (c *DeploymentLinterImplConfig) Default()

func (*DeploymentLinterImplConfig) Option added in v0.14.0

type DeploymentLinterImplOption added in v0.14.0

type DeploymentLinterImplOption interface {
	ConfigureDeploymentValidator(*DeploymentLinterImplConfig)
}

type WithDeploymentChecks added in v0.14.0

type WithDeploymentChecks []DeploymentCheck

func (WithDeploymentChecks) ConfigureDeploymentLinter added in v0.14.0

func (w WithDeploymentChecks) ConfigureDeploymentLinter(c *DeploymentLinterImplConfig)

Jump to

Keyboard shortcuts

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