watch

package
v0.0.0-...-e993711 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiffModuleReleaseMetaChannels

func DiffModuleReleaseMetaChannels(oldModuleReleaseMeta, newModuleReleaseMeta *v1beta2.ModuleReleaseMeta) map[string]v1beta2.ChannelVersionAssignment

DiffModuleReleaseMetaChannels determines the difference between the old and new ModuleReleaseMeta channels. It returns a map of the channels that have been updated or added.

func GetAffectedKymas

func GetAffectedKymas(kymas *v1beta2.KymaList, moduleName string,
	newChannelAssignments map[string]v1beta2.ChannelVersionAssignment,
) []*types.NamespacedName

GetAffectedKymas determines which Kymas are affected by the update. It returns a list of Kymas that have modules assigned to the updated channels.

Types

type ChangeHandlerClient

type ChangeHandlerClient interface {
	client.Reader
}

type MandatoryTemplateChangeHandler

type MandatoryTemplateChangeHandler struct {
	client.Reader
}

func NewMandatoryTemplateChangeHandler

func NewMandatoryTemplateChangeHandler(handlerClient ChangeHandlerClient) *MandatoryTemplateChangeHandler

func (*MandatoryTemplateChangeHandler) Watch

type TemplateChangeHandler

type TemplateChangeHandler struct {
	client.Reader
}

func NewTemplateChangeHandler

func NewTemplateChangeHandler(handlerClient ChangeHandlerClient) *TemplateChangeHandler

func (*TemplateChangeHandler) Watch

type TypedModuleReleaseMetaEventHandler

type TypedModuleReleaseMetaEventHandler[object any, request comparable] struct {
	client.Reader

	CreateFunc func(context.Context, event.TypedCreateEvent[object], workqueue.TypedRateLimitingInterface[request])

	UpdateFunc func(context.Context, event.TypedUpdateEvent[object], workqueue.TypedRateLimitingInterface[request])

	DeleteFunc func(context.Context, event.TypedDeleteEvent[object], workqueue.TypedRateLimitingInterface[request])

	GenericFunc func(context.Context, event.TypedGenericEvent[object], workqueue.TypedRateLimitingInterface[request])
}

TypedModuleReleaseMetaEventHandler implements handler.EventHandler.

func (TypedModuleReleaseMetaEventHandler[object, request]) Create

Create handles Create events.

func (TypedModuleReleaseMetaEventHandler[object, request]) Delete

Delete handles Delete events.

func (TypedModuleReleaseMetaEventHandler[object, request]) Generic

Generic handles generic events.

func (TypedModuleReleaseMetaEventHandler[object, request]) Update

Update handles Update events.

Jump to

Keyboard shortcuts

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