Documentation ¶
Index ¶
- func ValidateSchemas(v *lokiv1.ObjectStorageSpec, utcTime time.Time, ...) field.ErrorList
- type AlertingRuleValidator
- func (v *AlertingRuleValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (v *AlertingRuleValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *AlertingRuleValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (v *AlertingRuleValidator) ValidateUpdate(ctx context.Context, _, newObj runtime.Object) (admission.Warnings, error)
- type LokiStackValidator
- func (v *LokiStackValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (v *LokiStackValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *LokiStackValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (v *LokiStackValidator) ValidateUpdate(ctx context.Context, _, newObj runtime.Object) (admission.Warnings, error)
- type RecordingRuleValidator
- func (v *RecordingRuleValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (v *RecordingRuleValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *RecordingRuleValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (v *RecordingRuleValidator) ValidateUpdate(ctx context.Context, _, newObj runtime.Object) (admission.Warnings, error)
- type RulerConfigValidator
- func (v *RulerConfigValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (v *RulerConfigValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *RulerConfigValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (v *RulerConfigValidator) ValidateUpdate(ctx context.Context, _, newObj runtime.Object) (admission.Warnings, error)
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 ¶
func (v *AlertingRuleValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
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 ¶
func (v *LokiStackValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
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 ¶
func (v *RecordingRuleValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements admission.CustomValidator.
func (*RecordingRuleValidator) ValidateDelete ¶
func (v *RecordingRuleValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
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 ¶
func (v *RulerConfigValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateDelete implements admission.CustomValidator.
func (*RulerConfigValidator) ValidateUpdate ¶
func (v *RulerConfigValidator) ValidateUpdate(ctx context.Context, _, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements admission.CustomValidator.