updater

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2021 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 UpdateFunc

type UpdateFunc func(*unstructured.Unstructured) bool

func EnsureFinalizer

func EnsureFinalizer(finalizer string) UpdateFunc

func RemoveFinalizer

func RemoveFinalizer(finalizer string) UpdateFunc

type UpdateStatusFunc

type UpdateStatusFunc func(*helmAppStatus) bool

func EnsureCondition

func EnsureCondition(condition status.Condition) UpdateStatusFunc

func EnsureConditionUnknown

func EnsureConditionUnknown(t status.ConditionType) UpdateStatusFunc

func EnsureDeployedRelease

func EnsureDeployedRelease(rel *release.Release) UpdateStatusFunc

func RemoveDeployedRelease

func RemoveDeployedRelease() UpdateStatusFunc

type Updater

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

func New

func New(client client.Client) Updater

func (*Updater) Apply

func (u *Updater) Apply(ctx context.Context, obj *unstructured.Unstructured) error

func (*Updater) Update

func (u *Updater) Update(fs ...UpdateFunc)

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