handler

package
v0.0.0-...-a49f6f1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ManageContainersAnnotation = "apps.emqx.io/manage-containers"
	LastAppliedAnnotation      = "apps.emqx.io/last-applied"
)

Variables

This section is empty.

Functions

func IgnoreOtherContainers

func IgnoreOtherContainers() patch.CalculateOption

func SetManagerContainerAnnotation

func SetManagerContainerAnnotation(annotations map[string]string, containers []corev1.Container) map[string]string

Types

type Handler

type Handler struct {
	Patcher *Patcher
	Client  client.Client
}

func NewHandler

func NewHandler(mgr manager.Manager) *Handler

func (*Handler) Create

func (handler *Handler) Create(ctx context.Context, obj client.Object) error

func (*Handler) CreateOrUpdate

func (handler *Handler) CreateOrUpdate(ctx context.Context, scheme *runtime.Scheme, logger logr.Logger, instance client.Object, obj client.Object) error

func (*Handler) CreateOrUpdateList

func (handler *Handler) CreateOrUpdateList(ctx context.Context, scheme *runtime.Scheme, logger logr.Logger, instance client.Object, resources []client.Object) error

func (*Handler) Update

func (handler *Handler) Update(ctx context.Context, obj client.Object) error

type Patcher

type Patcher struct {
	*patch.Annotator
	patch.Maker
}

Jump to

Keyboard shortcuts

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