cluster

package
v2.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package cluster intercepts write activity to Cluster objects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsNotAllowed

func IsNotAllowed(err error) bool

IsNotAllowed asserts notAllowedError.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

func IsParsingFailed

func IsParsingFailed(err error) bool

IsParsingFailed asserts parsingFailedError.

Types

type Config

type Config struct {
	K8sClient k8sclient.Interface
	Logger    micrologger.Logger
}

type Mutator

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

Mutator for Cluster object.

func NewMutator

func NewMutator(config config.Config) (*Mutator, error)

func (*Mutator) Log

func (m *Mutator) Log(keyVals ...interface{})

func (*Mutator) Mutate

Mutate is the function executed for every matching webhook request.

func (*Mutator) MutateCreate

func (m *Mutator) MutateCreate(request *admissionv1.AdmissionRequest) ([]mutator.PatchOperation, error)

MutateCreate is the function executed for every create webhook request.

func (*Mutator) MutateOperatorVersion

func (m *Mutator) MutateOperatorVersion(cluster capiv1alpha2.Cluster, releaseVersion *semver.Version) ([]mutator.PatchOperation, error)

func (*Mutator) Resource

func (m *Mutator) Resource() string

Jump to

Keyboard shortcuts

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