Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateRendererProperties ¶
func ValidateRendererProperties(renderer string, props map[string]any, metricsViews map[string]*runtimev1.MetricsViewSpec) error
ValidateRendererProperties validates the renderer properties for a component. The provided metricsViews should contain every valid metrics view referenced by the component (as determined in the parser). If the renderer properties reference a metrics view not in metricsViews, assume the metrics view is invalid or does not exist (don't look it up separately in the catalog).
Note: metrics views referenced through markdown content cannot be validated here. This is because the upstream parser can't extract refs from templates, so the metrics views cannot be passed through to here. Warning: if you try to fix this, note that the refs must be added in the parser, not looked up dynamically here; a dynamic lookup will have a race condition where the metrics view may not have been reconciled yet.
Types ¶
This section is empty.