reconciler

package
v0.23.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonOptions

type CommonOptions struct {
	Dir                string
	Wait               bool
	Force              bool
	OverwriteOwnership bool
}

type InstanceOwnershipConflict

type InstanceOwnershipConflict struct{ InstanceName, CurrentOwnerBundle string }

type InstanceOwnershipConflictErr

type InstanceOwnershipConflictErr []InstanceOwnershipConflict

func (*InstanceOwnershipConflictErr) Error

type InteractiveOptions

type InteractiveOptions struct {
	DryRun     bool
	Diff       bool
	DiffOutput io.Writer

	ProgressStart func(string) interface{ Stop() }
}

type InteractiveReconciler

type InteractiveReconciler struct {
	*Reconciler
	*InteractiveOptions
}

func NewInteractiveReconciler

func NewInteractiveReconciler(log logr.Logger, copts *CommonOptions, iopts *InteractiveOptions, timeout time.Duration) *InteractiveReconciler

func (*InteractiveReconciler) ApplyInstance

func (r *InteractiveReconciler) ApplyInstance(ctx context.Context, log logr.Logger, builder *engine.ModuleBuilder, buildResult cue.Value) error

func (*InteractiveReconciler) DryRunDiff

func (r *InteractiveReconciler) DryRunDiff(ctx context.Context, namespaceExists bool) error

func (*InteractiveReconciler) Wait

func (*InteractiveReconciler) WaitForTermination

func (r *InteractiveReconciler) WaitForTermination(ctx context.Context, log logr.Logger, cs *ssa.ChangeSet, _ *engine.ResourceSet) error

type Reconciler

type Reconciler struct {
	// contains filtered or unexported fields
}

func NewReconciler

func NewReconciler(log logr.Logger, opts *CommonOptions, timeout time.Duration) *Reconciler

func (*Reconciler) ApplyAllSets

func (r *Reconciler) ApplyAllSets(ctx context.Context, log logr.Logger, withChangeSet withChangeSetFunc) error

func (*Reconciler) ApplyAllStaged

func (r *Reconciler) ApplyAllStaged(ctx context.Context, set engine.ResourceSet) (*ssa.ChangeSet, error)

func (*Reconciler) ApplyInstance

func (r *Reconciler) ApplyInstance(ctx context.Context, log logr.Logger, builder *engine.ModuleBuilder, buildResult cue.Value) error

func (*Reconciler) Init

func (r *Reconciler) Init(ctx context.Context, builder *engine.ModuleBuilder, buildResult cue.Value, instance *apiv1.BundleInstance, rcg genericclioptions.RESTClientGetter) error

func (*Reconciler) Name

func (r *Reconciler) Name() string

func (*Reconciler) Namespace

func (r *Reconciler) Namespace() string

func (*Reconciler) NamespaceExists

func (r *Reconciler) NamespaceExists(ctx context.Context) (bool, error)

func (*Reconciler) PostApplyPruneStaleObjects

func (r *Reconciler) PostApplyPruneStaleObjects(ctx context.Context, log logr.Logger, withChangeSet withChangeSetFunc) error

func (*Reconciler) PostApplyUpdateInventory

func (r *Reconciler) PostApplyUpdateInventory(ctx context.Context, builder *engine.ModuleBuilder, buildResult cue.Value) error

func (*Reconciler) UpdateImages

func (r *Reconciler) UpdateImages(builder *engine.ModuleBuilder, buildResult cue.Value)

func (*Reconciler) UpdateStoredInstance

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

func (*Reconciler) Wait

func (*Reconciler) WaitForTermination

func (r *Reconciler) WaitForTermination(ctx context.Context, log logr.Logger, cs *ssa.ChangeSet, _ *engine.ResourceSet) error

Jump to

Keyboard shortcuts

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