lifecycle

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetImage

func GetImage(ctx context.Context, c kubernetes.Interface) (string, error)

func UpdateImage

func UpdateImage(ctx context.Context, keychain authn.Keychain, srcImgLocation string, cfg ImageUpdaterConfig, hooks ...PreUpdateHook) (*corev1.ConfigMap, error)

Types

type ImageUpdaterConfig

type ImageUpdaterConfig struct {
	DryRun       bool
	IOWriter     io.Writer
	ImgFetcher   registry.Fetcher
	ImgRelocator registry.Relocator
	ClientSet    buildk8s.ClientSet
	TLSConfig    registry.TLSConfig
}

type PreUpdateHook

type PreUpdateHook func(*corev1.ConfigMap)

Jump to

Keyboard shortcuts

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