policy

package
v0.156.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package policy provides a policy checker for the helmfile state.

Index

Constants

This section is empty.

Variables

View Source
var (
	EnvironmentsAndReleasesWithinSameYamlPartErr = errors.New("environments and releases cannot be defined within the same YAML part. Use --- to extract the environments into a dedicated part")
)

Functions

func Checker

func Checker(filePath string, content []byte) (bool, error)

Checker is a policy checker for the helmfile state.

func TopConfigKeysVerifier added in v0.156.0

func TopConfigKeysVerifier(filePath string, helmfileContent []byte) (bool, error)

TopConfigKeysVerifier verifies the top-level config keys are defined in the correct order.

func TopKeys added in v0.156.0

func TopKeys(helmfileContent []byte, hasSeparator bool) []string

TopKeys returns the top-level config keys.

Types

This section is empty.

Jump to

Keyboard shortcuts

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