transformers

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transformer

type Transformer interface {
	Transform(ctx context.Context, u *unstructured.Unstructured, namespace *corev1.Namespace) error
}

func NewResourceQuotaTransformer

func NewResourceQuotaTransformer(labelBase string) Transformer

NewResourceQuotaTransformer returns a new Transformer that transforms ResourceQuota objects from the annotation of the given namespace. The annotation must start with the given labelBase. labelBase is normalized to end with a "/".

Jump to

Keyboard shortcuts

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