kyma

package
v0.0.0-...-219a685 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 License: Apache-2.0 Imports: 48 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrManifestsStillExist = errors.New("manifests still exist")
	ErrInvalidKymaSpec     = errors.New("invalid kyma spec")
	ErrKymaInErrorState    = errors.New("kyma in error state")
)
View Source
var (
	ErrHandlingWatcherEvent   = errors.New("error handling watcher event")
	ErrConvertingWatcherEvent = errors.New("failed to convert event object")
	ErrExtractingRuntimeID    = errors.New("failed to extract runtime ID from event data")
)

Functions

func CreateSkrEventHandler

func CreateSkrEventHandler(kymaLookup KymaLookupService) *handler.Funcs

func ExtractRuntimeIDFromMap

func ExtractRuntimeIDFromMap(unstructuredEvent *unstructured.Unstructured) (string, bool)

func GetRuntimeIDFromEvent

func GetRuntimeIDFromEvent(evnt event.GenericEvent) (string, error)

Types

type DeletionEventRecorder

type DeletionEventRecorder interface {
	Record(ctx context.Context, obj machineryruntime.Object, res result.Result)
}

type DeletionMetricWriter

type DeletionMetricWriter interface {
	Write(res result.Result)
}

type DeletionService

type DeletionService interface {
	Delete(ctx context.Context, kyma *v1beta2.Kyma) result.Result
}

type KymaLookupService

type KymaLookupService interface {
	NameByRuntimeID(ctx context.Context, runtimeID string) (string, error)
}

type LookupService

type LookupService interface {
	ByRuntimeID(ctx context.Context, runtimeID string) (*v1beta2.Kyma, error)
}

type ModuleStatusHandler

type ModuleStatusHandler interface {
	UpdateModuleStatuses(ctx context.Context, kyma *v1beta2.Kyma, modules modulecommon.Modules) error
}

type Reconciler

type Reconciler struct {
	client.Client
	event.Event
	queue.RequeueIntervals

	Config               ReconcilerConfig
	SkrContextFactory    remote.SkrContextProvider
	DescriptorProvider   *provider.CachedDescriptorProvider
	SkrSyncService       SkrSyncService
	ModulesStatusHandler ModuleStatusHandler
	SKRWebhookManager    SKRWebhookManager

	Metrics        *metrics.KymaMetrics
	RemoteCatalog  *remote.RemoteCatalog
	TemplateLookup *templatelookup.TemplateLookup

	DeletionMetrics DeletionMetricWriter
	DeletionEvents  DeletionEventRecorder
	DeletionService DeletionService
	LookupService   LookupService
}

func (*Reconciler) DeleteNoLongerExistingModules

func (r *Reconciler) DeleteNoLongerExistingModules(ctx context.Context, kyma *v1beta2.Kyma) error

func (*Reconciler) GetModuleTemplateList

func (r *Reconciler) GetModuleTemplateList(ctx context.Context) (*v1beta2.ModuleTemplateList, error)

func (*Reconciler) IsKymaManaged

func (r *Reconciler) IsKymaManaged() bool

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(mgr ctrl.Manager, opts ctrlruntime.Options, settings SetupOptions) error

func (*Reconciler) SkrImagePullSecretSyncEnabled

func (r *Reconciler) SkrImagePullSecretSyncEnabled() bool

func (*Reconciler) UpdateMetrics

func (r *Reconciler) UpdateMetrics(ctx context.Context, kyma *v1beta2.Kyma)

func (*Reconciler) UpdateModuleTemplatesIfNeeded

func (r *Reconciler) UpdateModuleTemplatesIfNeeded(ctx context.Context) error

func (*Reconciler) ValidateDefaultChannel

func (r *Reconciler) ValidateDefaultChannel(kyma *v1beta2.Kyma) error

ValidateDefaultChannel validates the Kyma spec.

func (*Reconciler) WatcherEnabled

func (r *Reconciler) WatcherEnabled() bool

type ReconcilerConfig

type ReconcilerConfig struct {
	RemoteSyncNamespace    string
	IsManagedKyma          bool
	OCIRegistryHost        string
	SkrImagePullSecretName string
}

ReconcilerConfig holds configuration values for the Kyma Reconciler. Usually read from flags or environment variables.

type SKRWebhookManager

type SKRWebhookManager interface {
	Reconcile(ctx context.Context, kyma *v1beta2.Kyma) error
	Remove(ctx context.Context, kyma *v1beta2.Kyma) error
	RemoveSkrCertificate(ctx context.Context, kymaName string) error
}

type SetupOptions

type SetupOptions struct {
	ListenerAddr                 string
	EnableDomainNameVerification bool
	IstioNamespace               string
}

type SkrSyncService

type SkrSyncService interface {
	SyncCrds(ctx context.Context, kyma *v1beta2.Kyma) (bool, error)
	SyncImagePullSecret(ctx context.Context, kyma types.NamespacedName) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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