Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddProxyValidationResult ¶
func AddProxyValidationResult(resourceReports reporter.ResourceReports, proxy *gloov1.Proxy, proxyReport *validation.ProxyReport) error
Update a set of ResourceReports with the results of a proxy validation Using the sources from Listener.Metadata, VirtualHost.Metadata, and Route.Metadata, we can extrapolate the errors this function should not return an error unless: - parsing the {listener/virtualhost/route}.Metadata struct as a translator.Sources fails - the proxy report does not match the proxy
func AllSourcesAccepted ¶
func AllSourcesAccepted(reports reporter.ResourceReports, configObj translator.ObjectWithMetadata) (bool, error)
returns true if all the source objects for the config object were accepted in the resource reports errors if parsing the config obj metadata fails (should never happen)
Types ¶
type SourceError ¶ added in v1.19.23
type SourceError struct {
// ResourceKind is the kind as recorded in the config object's source metadata, which is a Go
// type name such as "*v1.Gateway" rather than a Kubernetes kind.
ResourceKind string
Ref *core.ResourceRef
Err error
}
SourceError is the error recorded against one rejected source object of a config object.
func SourceErrors ¶ added in v1.19.23
func SourceErrors(reports reporter.ResourceReports, configObj translator.ObjectWithMetadata) ([]SourceError, error)
SourceErrors returns an entry for each rejected source object of the config object, in source metadata order. These are the reports AllSourcesAccepted decides on, so a log line recording that decision should carry them. Entries are unformatted; callers render the kind and error.