autoupgrade

package
v0.9.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoUpgradePattern

func AutoUpgradePattern(image string) (string, bool)

AutoUpgradePattern returns the tag and a boolean indicating whether it is actually a pattern (versus a concrete tag)

func FindLatest

func FindLatest(current, pattern string, tags []string) (string, error)

FindLatest returns the tag from the tags slice that sorts as the "latest" according to the supplied pattern.

func FindLatestTagForImageWithPattern

func FindLatestTagForImageWithPattern(ctx context.Context, c kclient.Client, current, namespace, image, pattern string, remoteOpts ...remote.Option) (string, bool, error)

FindLatestTagForImageWithPattern will return the latest tag for image corresponding to the pattern.

func Implied

func Implied(image, interval string, notify bool) bool

Implied returns a boolean indicating if auto-upgrade is implied by either: 1. A pattern specified in the image 2. A non-empty interval 3. app.Spec.NotifyUpgrade set to true

func Mode

func Mode(appSpec v1.AppInstanceSpec) (string, bool)

func StartSync

func StartSync(ctx context.Context, client kclient.Client)

StartSync starts the daemon. It watches for new sync events coming and ensures a sync is triggered periodically.

func Sync

func Sync()

Sync tells the daemon to trigger the image syncing logic

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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