mutate

package
v0.1.18 Latest Latest
Warning

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

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

Documentation

Overview

Package mutate contains a struct for performing mutations to K8s objects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MutationFunc

type MutationFunc func(runtime.Object) (runtime.Object, error)

type Mutor

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

Mutor contains a set of mutation functions.

func New

func New(m []MutationFunc) *Mutor

New build a new Mutor

func (*Mutor) MutateObject

func (m *Mutor) MutateObject(obj runtime.Object) ([]byte, error)

MutatePod applies all mutations to a copy of the provided object. It returns a json patch (rfc6902).

Jump to

Keyboard shortcuts

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