sync

package
v0.0.0-...-67aceb4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrServerSideApplyFailed = errors.New("ServerSideApply failed")

Functions

func DeleteNoLongerExistingModuleStatus

func DeleteNoLongerExistingModuleStatus(ctx context.Context, kyma *v1beta2.Kyma, moduleFunc GetModuleFunc,
	kymaMetricsRemoveMetrics, moduleMetricsRemoveMetrics RemoveMetricsFunc,
)

func NeedToUpdate

func NeedToUpdate(manifestInCluster, newManifest *v1beta2.Manifest, moduleInStatus *v1beta2.ModuleStatus,
	module *common.Module,
) bool

Types

type GetModuleFunc

type GetModuleFunc func(ctx context.Context, module client.Object) error

type RemoveMetricsFunc

type RemoveMetricsFunc func(kymaName, moduleName string)

type Runner

type Runner struct {
	client.Client
	// contains filtered or unexported fields
}

func New

func New(clnt client.Client) *Runner

func (*Runner) ReconcileManifests

func (r *Runner) ReconcileManifests(ctx context.Context, kyma *v1beta2.Kyma,
	modules common.Modules,
) error

func (*Runner) SyncModuleStatus

func (r *Runner) SyncModuleStatus(ctx context.Context, kyma *v1beta2.Kyma, modules common.Modules,
	kymaMetrics *metrics.KymaMetrics, moduleMetrics *metrics.ModuleMetrics,
)

Jump to

Keyboard shortcuts

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