mutate

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthChecker added in v1.10.0

type AuthChecker interface {
	CanICreate(ctx context.Context, kind, namespace, subresource string) (bool, error)
	CanIUpdate(ctx context.Context, kind, namespace, subresource string) (bool, error)
	CanIGet(ctx context.Context, kind, namespace, subresource string) (bool, error)
}

type Mutate

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

Mutate provides implementation to validate 'mutate' rule

func NewMutateFactory

func NewMutateFactory(m kyvernov1.Mutation, client dclient.Interface, user string) *Mutate

NewMutateFactory returns a new instance of Mutate validation checker

func (*Mutate) Validate

func (m *Mutate) Validate(ctx context.Context) (string, error)

Validate validates the 'mutate' rule

Jump to

Keyboard shortcuts

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