bundle

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UpdateStatusFunc

type UpdateStatusFunc func(bundle *rukpakv1alpha1.BundleStatus) bool

func EnsureCondition

func EnsureCondition(condition metav1.Condition) UpdateStatusFunc

func EnsureContentURL

func EnsureContentURL(url string) UpdateStatusFunc

func EnsureObservedGeneration

func EnsureObservedGeneration(observedGeneration int64) UpdateStatusFunc

func EnsureResolvedSource

func EnsureResolvedSource(resolvedSource *rukpakv1alpha1.BundleSource) UpdateStatusFunc

func SetPhase

func SetPhase(phase string) UpdateStatusFunc

type Updater

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

func NewBundleUpdater

func NewBundleUpdater(client client.Client) Updater

func (*Updater) Apply

func (u *Updater) Apply(ctx context.Context, b *rukpakv1alpha1.Bundle) error

func (*Updater) UpdateStatus

func (u *Updater) UpdateStatus(fs ...UpdateStatusFunc)

Jump to

Keyboard shortcuts

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