lint

package
v1.129.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEmbeddedTroubleshootSpecs

func GetEmbeddedTroubleshootSpecs(ctx context.Context, specsFiles types.SpecFiles) types.SpecFiles

GetEmbeddedTroubleshootSpecs extracts troubleshoot specs from ConfigMaps and Secrets

func GetFilesFromChartReader

func GetFilesFromChartReader(ctx context.Context, content []byte) (types.SpecFiles, error)

GetFilesFromChartReader extracts files from a Helm chart archive

func InitOPA

func InitOPA() error

InitOPA initializes the OPA linting engine This must be called before running LintSpecFiles

func LintSpecFiles

func LintSpecFiles(ctx context.Context, specFiles types.SpecFiles, opts LintOptions) (*types.LintResult, error)

LintSpecFiles performs comprehensive linting on KOTS application spec files Returns lint results and a boolean indicating if linting completed all steps

func LoadFiles

func LoadFiles(path string) (types.SpecFiles, error)

LoadFiles loads spec files from a path (directory or tar archive)

func LoadFromDirectory

func LoadFromDirectory(dirPath string) (types.SpecFiles, error)

LoadFromDirectory loads spec files from a directory on the filesystem

func LoadFromTar

func LoadFromTar(reader io.Reader) (types.SpecFiles, error)

LoadFromTar loads spec files from a tar archive reader

Types

type LintOptions

type LintOptions struct {
	SkipNetworkChecks bool // Skip checks that require network (e.g., version validation)
	Verbose           bool // Show detailed progress for each validator
}

LintOptions contains options for linting

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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