v1

package
v2.10.8 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SPRegexp = regexp.MustCompile("^[A-Za-z0-9][A-Za-z0-9_-]{1,46}[A-Za-z0-9]$")
	VGRegexp = regexp.MustCompile("^[A-Za-z0-9.+_-]+$")
)

Functions

func SetupLinstorClusterWebhookWithManager

func SetupLinstorClusterWebhookWithManager(mgr ctrl.Manager) error

func SetupLinstorNodeConnectionWebhookWithManager

func SetupLinstorNodeConnectionWebhookWithManager(mgr ctrl.Manager) error

func SetupLinstorSatelliteConfigurationWebhookWithManager

func SetupLinstorSatelliteConfigurationWebhookWithManager(mgr ctrl.Manager) error

func SetupLinstorSatelliteWebhookWithManager

func SetupLinstorSatelliteWebhookWithManager(mgr ctrl.Manager) error

func ValidateComponentSpec

func ValidateComponentSpec(curSpec *piraeusiov1.ComponentSpec, fieldPrefix *field.Path) field.ErrorList

func ValidateDeploymentSpec added in v2.10.0

func ValidateDeploymentSpec(curSpec *piraeusiov1.DeploymentComponentSpec, fieldPrefix *field.Path) field.ErrorList

func ValidateLinstorStoragePoolFile

func ValidateLinstorStoragePoolFile(newSP *piraeusv1.LinstorStoragePoolFile, oldSP *piraeusv1.LinstorStoragePool, fieldPrefix *field.Path, name string, thin bool) field.ErrorList

func ValidateLinstorStoragePoolLvm

func ValidateLinstorStoragePoolLvm(newSP *piraeusv1.LinstorStoragePoolLvm, oldSP *piraeusv1.LinstorStoragePool, fieldPrefix *field.Path) field.ErrorList

func ValidateNodeConnectionSelectors

func ValidateNodeConnectionSelectors(selector []piraeusv1.SelectorTerm, path *field.Path) field.ErrorList

func ValidateNodeProperties

func ValidateNodeProperties(props []piraeusv1.LinstorNodeProperty, path *field.Path) field.ErrorList

func ValidateNodeSelector

func ValidateNodeSelector(selector map[string]string, path *field.Path) field.ErrorList

func ValidatePatch

func ValidatePatch(patch *piraeusv1.Patch, path *field.Path) field.ErrorList

func ValidatePodTemplate

func ValidatePodTemplate(template json.RawMessage, fieldPrefix *field.Path) field.ErrorList

func ValidateStoragePools

func ValidateStoragePools(curSPs, oldSPs []piraeusv1.LinstorStoragePool, fieldPrefix *field.Path) field.ErrorList

func WarnOnBareSatellitePodPatch

func WarnOnBareSatellitePodPatch(patch *piraeusiov1.Patch, path *field.Path) admission.Warnings

Types

type LinstorClusterCustomValidator

type LinstorClusterCustomValidator struct{}

func (*LinstorClusterCustomValidator) ValidateCreate

func (*LinstorClusterCustomValidator) ValidateDelete

func (*LinstorClusterCustomValidator) ValidateUpdate

func (r *LinstorClusterCustomValidator) ValidateUpdate(ctx context.Context, oldLinstorCluster, linstorCluster *piraeusiov1.LinstorCluster) (admission.Warnings, error)

type LinstorNodeConnectionCustomValidator

type LinstorNodeConnectionCustomValidator struct{}

func (*LinstorNodeConnectionCustomValidator) ValidateCreate

func (*LinstorNodeConnectionCustomValidator) ValidateDelete

func (*LinstorNodeConnectionCustomValidator) ValidateUpdate

func (r *LinstorNodeConnectionCustomValidator) ValidateUpdate(ctx context.Context, oldNodeConnection, nodeConnection *piraeusv1.LinstorNodeConnection) (admission.Warnings, error)

type LinstorSatelliteConfigurationCustomValidator

type LinstorSatelliteConfigurationCustomValidator struct{}

func (*LinstorSatelliteConfigurationCustomValidator) ValidateCreate

func (*LinstorSatelliteConfigurationCustomValidator) ValidateDelete

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*LinstorSatelliteConfigurationCustomValidator) ValidateUpdate

func (r *LinstorSatelliteConfigurationCustomValidator) ValidateUpdate(ctx context.Context, oldSatelliteConfiguration, satelliteConfiguration *piraeusv1.LinstorSatelliteConfiguration) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type LinstorSatelliteCustomValidator

type LinstorSatelliteCustomValidator struct{}

func (*LinstorSatelliteCustomValidator) ValidateCreate

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*LinstorSatelliteCustomValidator) ValidateDelete

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*LinstorSatelliteCustomValidator) ValidateUpdate

func (r *LinstorSatelliteCustomValidator) ValidateUpdate(ctx context.Context, oldSatellite, satellite *piraeusiov1.LinstorSatellite) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

Jump to

Keyboard shortcuts

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