validation

package
v0.60.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateAlertmanager

func ValidateAlertmanager(am *monitoringv1.Alertmanager) error

ValidateAlertmanager runs extra validation on the AlertManager fields which can't be done at the CRD schema validation level.

func ValidateURL

func ValidateURL(url string) (*config.URL, error)

ValidateURL against the config.URL This could potentially become a regex and be validated via OpenAPI but right now, since we know we need to unmarshal into an upstream type after conversion, we validate we don't error when doing so

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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