Documentation ¶
Index ¶
- func AreValidk8sAnnotationNames(names ...string) []string
- func AreValidk8sLabelNames(names ...string) []string
- func AreValidk8sNamespaceNames(names ...string) []string
- func IsValidk8sAnnotationName(name string) string
- func IsValidk8sLabelName(name string) string
- func IsValidk8sNamespaceName(name string) string
- func IsValidk8sSecretName(name string) string
- type DeploymentCheck
- type DeploymentCheckResult
- func HasCPUResourceRequirements(d appsv1.Deployment) DeploymentCheckResult
- func HasLivenessProbes(d appsv1.Deployment) DeploymentCheckResult
- func HasMemoryResourceRequirements(d appsv1.Deployment) DeploymentCheckResult
- func HasReadinessProbes(d appsv1.Deployment) DeploymentCheckResult
- func NewDeploymentCheckResult(reasons ...string) DeploymentCheckResult
- type DeploymentCheckResultList
- type DeploymentLinter
- type DeploymentLinterImpl
- type DeploymentLinterImplConfig
- type DeploymentLinterImplOption
- type WithDeploymentChecks
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AreValidk8sAnnotationNames ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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
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
func (r DeploymentCheckResult) Join(other DeploymentCheckResult) DeploymentCheckResult
type DeploymentCheckResultList ¶ added in v0.14.0
type DeploymentCheckResultList []DeploymentCheckResult
func (DeploymentCheckResultList) Reduce ¶ added in v0.14.0
func (l DeploymentCheckResultList) Reduce() DeploymentCheckResult
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
func (dv *DeploymentLinterImpl) Lint(d appsv1.Deployment) DeploymentCheckResult
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
func (c *DeploymentLinterImplConfig) Option(opts ...DeploymentLinterImplOption)
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)