validators

package
v1.129.2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitOPA

func InitOPA() error

InitOPA initializes the OPA linting queries

func ValidateAnnotations

func ValidateAnnotations(specFiles types.SpecFiles) ([]types.LintExpression, error)

ValidateAnnotations validates KOTS-specific resource annotations

func ValidateOPANonRendered

func ValidateOPANonRendered(specFiles types.SpecFiles) ([]types.LintExpression, error)

ValidateOPANonRendered validates files using OPA policies before rendering InitOPA needs to be called first in order for this function to run successfully

func ValidateRenderedYAML

func ValidateRenderedYAML(renderedFiles types.SpecFiles) []types.LintExpression

ValidateRenderedYAML validates that rendered files are still valid YAML

func ValidateRendering

func ValidateRendering(specFiles types.SpecFiles) ([]types.LintExpression, types.SpecFiles, error)

ValidateRendering validates that templates can be rendered successfully

func ValidateYAML

func ValidateYAML(files types.SpecFiles) []types.LintExpression

ValidateYAML validates that all YAML files have valid syntax

Types

type RenderTemplateError

type RenderTemplateError struct {
	// contains filtered or unexported fields
}

RenderTemplateError represents an error that occurred during template rendering

func (RenderTemplateError) Error

func (r RenderTemplateError) Error() string

func (RenderTemplateError) Match

func (r RenderTemplateError) Match() string

Jump to

Keyboard shortcuts

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