generate

package
v1.13.2-rc.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeGenerate

type FakeGenerate struct {
	Generate
}

FakeGenerate provides implementation for generate rule processing with mocks/fakes for cluster interactions

func NewFakeGenerate

func NewFakeGenerate(rule kyvernov1.Generation) *FakeGenerate

NewFakeGenerate returns a new instance of generatecheck that uses fake/mock implementation for operation access(always returns true)

type Generate

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

Generate provides implementation to validate 'generate' rule

func NewGenerateFactory

func NewGenerateFactory(client dclient.Interface, rule *kyvernov1.Rule, user, reportsSA string, log logr.Logger) *Generate

NewGenerateFactory returns a new instance of Generate validation checker

func (*Generate) Validate

func (g *Generate) Validate(ctx context.Context, verbs []string) (warnings []string, path string, err error)

Validate validates the 'generate' rule

Jump to

Keyboard shortcuts

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