dynamichelper

package
v0.0.0-...-b534984 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 36 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeUnstructured

func DecodeUnstructured(data []byte) (*unstructured.Unstructured, error)

func GetEnforcementAction

func GetEnforcementAction(obj *unstructured.Unstructured) (string, error)

func Prepare

func Prepare(resources []kruntime.Object) error

func SetControllerReferences

func SetControllerReferences(resources []kruntime.Object, owner metav1.Object) error

Types

type GVRResolver

type GVRResolver interface {
	Refresh() error
	Resolve(groupKind, optionalVersion string) (*schema.GroupVersionResource, error)
}

func NewGVRResolver

func NewGVRResolver(log *logrus.Entry, restconfig *rest.Config) (GVRResolver, error)

type Interface

type Interface interface {
	Refresh() error
	EnsureDeleted(ctx context.Context, groupKind, namespace, name string) error
	EnsureDeletedGVR(ctx context.Context, groupKind, namespace, name, optionalVersion string) error
	Ensure(ctx context.Context, objs ...kruntime.Object) error
	IsConstraintTemplateReady(ctx context.Context, name string) (bool, error)
}

func New

func New(log *logrus.Entry, restconfig *rest.Config) (Interface, error)

type UnstructuredObj

type UnstructuredObj struct {
	*unstructured.Unstructured
}

this is specifically for the Guardrails

func (*UnstructuredObj) DeepCopyObject

func (o *UnstructuredObj) DeepCopyObject() kruntime.Object

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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