Documentation ¶
Index ¶
- func ConfigNotEmpty(config *runtime.RawExtension) bool
- func IsInvalidURI(toTest string) (bool, error)
- func ValidateDomainName(domain string) bool
- func ValidateServiceName(service string) bool
- func ValidateSubdomainName(subdomain string) bool
- func VerifyLabelKey(key string) error
- func VerifyLabelValue(value string) error
- type ApiRuleValidator
- type Failure
- type InjectionValidator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigNotEmpty ¶
func ConfigNotEmpty(config *runtime.RawExtension) bool
ConfigNotEmpty Verify if the config object is not empty
func IsInvalidURI ¶
func ValidateSubdomainName ¶
ValidateSubdomainName ?
func VerifyLabelKey ¶
VerifyLabelKey returns error if the provided string is not a proper k8s label key
func VerifyLabelValue ¶
VerifyLabelValue returns error if the provided string is not a proper k8s label value
Types ¶
type ApiRuleValidator ¶
type ApiRuleValidator interface {
Validate(ctx context.Context, client client.Client, vsList networkingv1beta1.VirtualServiceList, gwList networkingv1beta1.GatewayList) []Failure
}
type Failure ¶
Failure carries validation failures for a single attribute of an object.
func ValidateConfig ¶
type InjectionValidator ¶
func NewInjectionValidator ¶
func NewInjectionValidator(ctx context.Context, client client.Client) *InjectionValidator
func (*InjectionValidator) Validate ¶
func (v *InjectionValidator) Validate(attributePath string, selector *apiv1beta1.WorkloadSelector, workloadNamespace string) (problems []Failure, err error)
Click to show internal directories.
Click to hide internal directories.