validator

package
v0.49.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 13 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSecretsExist added in v0.28.0

func CheckSecretsExist(client kubernetes.Interface, secNames []string, namespace string) error

func IsStorageTypeCompatibleWithSpec added in v0.28.0

func IsStorageTypeCompatibleWithSpec(storageType olddbapi.StorageType, storage *core.PersistentVolumeClaimSpec, ephemeralStorage *core.EmptyDirVolumeSource) error

func IsStorageTypeCompatibleWithSpecV1 added in v0.47.0

func IsStorageTypeCompatibleWithSpecV1(storageType dbapi.StorageType, storage *core.PersistentVolumeClaimSpec, ephemeralStorage *core.EmptyDirVolumeSource) error

func ValidateEnvVar

func ValidateEnvVar(envs []core.EnvVar, forbiddenEnvs []string, resourceType string) error

func ValidateHealth added in v0.28.0

func ValidateHealth(health *kmapi.HealthCheckSpec) error

func ValidateInternalUsers added in v0.27.0

func ValidateInternalUsers(users map[string]olddbapi.ElasticsearchUserSpec, allowedInternalUsers []string, resourceType string) error

func ValidateInternalUsersV1 added in v0.47.0

func ValidateInternalUsersV1(users map[string]dbapi.ElasticsearchUserSpec, allowedInternalUsers []string, resourceType string) error

func ValidateMonitorSpec

func ValidateMonitorSpec(agent *mona.AgentSpec) error

ValidateMonitorSpec validates the Monitoring spec after all the defaulting is done.

func ValidateMountPaths added in v0.28.0

func ValidateMountPaths(volumeMounts []core.VolumeMount, reservedMountPaths []string) error

func ValidateStorage

func ValidateStorage(client kubernetes.Interface, storageType olddbapi.StorageType, spec *core.PersistentVolumeClaimSpec, storageSpecPath ...string) error

func ValidateStorageV1 added in v0.47.0

func ValidateStorageV1(client kubernetes.Interface, storageType dbapi.StorageType, spec *core.PersistentVolumeClaimSpec, storageSpecPath ...string) error

func ValidateVolumes added in v0.28.0

func ValidateVolumes(volumes []core.Volume, reservedVolumeNames []string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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