validation

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateSchemas

func ValidateSchemas(v *lokiv1.ObjectStorageSpec, utcTime time.Time, status lokiv1.LokiStackStorageStatus) field.ErrorList

ValidateSchemas ensures that the schemas are in a valid format

Types

type AlertingRuleValidator

type AlertingRuleValidator struct {
	ExtendedValidator func(context.Context, *lokiv1.AlertingRule) field.ErrorList
}

AlertingRuleValidator implements a custom validator for AlertingRule resources.

func (*AlertingRuleValidator) SetupWebhookWithManager

func (v *AlertingRuleValidator) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager registers the AlertingRuleValidator as a validating webhook with the controller-runtime manager or returns an error.

func (*AlertingRuleValidator) ValidateCreate

func (v *AlertingRuleValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)

ValidateCreate implements admission.CustomValidator.

func (*AlertingRuleValidator) ValidateDelete

ValidateDelete implements admission.CustomValidator.

func (*AlertingRuleValidator) ValidateUpdate

func (v *AlertingRuleValidator) ValidateUpdate(ctx context.Context, _, newObj runtime.Object) (admission.Warnings, error)

ValidateUpdate implements admission.CustomValidator.

type LokiStackValidator

type LokiStackValidator struct {
	ExtendedValidator func(context.Context, *lokiv1.LokiStack) field.ErrorList
}

LokiStackValidator implements a custom validator for LokiStack resources.

func (*LokiStackValidator) SetupWebhookWithManager

func (v *LokiStackValidator) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager registers the LokiStackValidator as a validating webhook with the controller-runtime manager or returns an error.

func (*LokiStackValidator) ValidateCreate

func (v *LokiStackValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)

ValidateCreate implements admission.CustomValidator.

func (*LokiStackValidator) ValidateDelete

ValidateDelete implements admission.CustomValidator.

func (*LokiStackValidator) ValidateUpdate

func (v *LokiStackValidator) ValidateUpdate(ctx context.Context, _, newObj runtime.Object) (admission.Warnings, error)

ValidateUpdate implements admission.CustomValidator.

type RecordingRuleValidator

type RecordingRuleValidator struct {
	ExtendedValidator func(context.Context, *lokiv1.RecordingRule) field.ErrorList
}

RecordingRuleValidator implements a custom validator for RecordingRule resources.

func (*RecordingRuleValidator) SetupWebhookWithManager

func (v *RecordingRuleValidator) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager registers the RecordingRuleValidator as a validating webhook with the controller-runtime manager or returns an error.

func (*RecordingRuleValidator) ValidateCreate

ValidateCreate implements admission.CustomValidator.

func (*RecordingRuleValidator) ValidateDelete

ValidateDelete implements admission.CustomValidator.

func (*RecordingRuleValidator) ValidateUpdate

func (v *RecordingRuleValidator) ValidateUpdate(ctx context.Context, _, newObj runtime.Object) (admission.Warnings, error)

ValidateUpdate implements admission.CustomValidator.

type RulerConfigValidator

type RulerConfigValidator struct{}

RulerConfigValidator implements a custom validator for RulerConfig resources.

func (*RulerConfigValidator) SetupWebhookWithManager

func (v *RulerConfigValidator) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager registers the RulerConfigValidator as a validating webhook with the controller-runtime manager or returns an error.

func (*RulerConfigValidator) ValidateCreate

func (v *RulerConfigValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)

ValidateCreate implements admission.CustomValidator.

func (*RulerConfigValidator) ValidateDelete

ValidateDelete implements admission.CustomValidator.

func (*RulerConfigValidator) ValidateUpdate

func (v *RulerConfigValidator) ValidateUpdate(ctx context.Context, _, newObj runtime.Object) (admission.Warnings, error)

ValidateUpdate implements admission.CustomValidator.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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