bestpractices

package
v0.0.0-...-91313ad Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Identifier = "bestpractices"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Evaluator

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

Evaluator implementation for redhat-cop best practices policy set. https://github.com/redhat-cop/rego-policies/blob/main/policy/ocp/bestpractices

func New

func New(policySet policies.PolicySet) (e *Evaluator)

New returns an Evaluator for the redhat-cop best practices policy set.

func (*Evaluator) Evaluate

func (r *Evaluator) Evaluate(resources *k8s.UnstructuredResources) (issues []policies.Issue, err error)

Evaluate policies against the resource collection and report issues.

Jump to

Keyboard shortcuts

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