version

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: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ProbeThreshold is the minimum time to wait between version upgrades.
	ProbeThreshold = 15 * time.Minute

	TmpCAPath = "/tmp/dynatrace-operator"
	TmpCAName = "dynatraceCustomCA.crt"
)
View Source
const (
	// VersionLabel is the name of the label used on ActiveGate-provided images.
	VersionLabel = "com.dynatrace.build-version"
)

Variables

This section is empty.

Functions

func ReconcileVersions

func ReconcileVersions(
	ctx context.Context,
	dkState *status.DynakubeState,
	apiReader client.Reader,
	fs afero.Afero,
	verProvider VersionProviderCallback,
) (bool, error)

ReconcileVersions updates the version and hash for the images used by the rec.Instance DynaKube instance.

Types

type ImageVersion

type ImageVersion struct {
	Version string
	Hash    string
}

ImageVersion includes information for a given image. Version can be empty if the corresponding label isn't set.

func GetImageVersion

func GetImageVersion(imageName string, dockerConfig *dockerconfig.DockerConfig) (ImageVersion, error)

GetImageVersion fetches image information for imageName

type ImageVersionProvider

type ImageVersionProvider func(img string, dockerConfig *dockerconfig.DockerConfig) (ImageVersion, error)

ImageVersionProvider can fetch image information from img

type VersionProviderCallback

type VersionProviderCallback func(string, *dockerconfig.DockerConfig) (ImageVersion, error)

VersionProviderCallback fetches the version for a given image.

Jump to

Keyboard shortcuts

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