utils

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DebugModeEnvKey string = "DEBUG"
)

Variables

This section is empty.

Functions

func CaptureWorkloadImage

func CaptureWorkloadImage(logger *log.ZapLogger, imageVersion string, debug bool, vs VersionSource) string

TODO: currently, we return only the default capture workload image for official release in the phase of preview, and using the same version for CLI and capture workload image makes sure there's no compatibility issue. We can consider exposing the image name and version through CLI flags and adding version compatibility validation for CLI and capture workload image.

func GetContainerLabelsFromCaptureName

func GetContainerLabelsFromCaptureName(captureName string) map[string]string

func GetJobLabelsFromCaptureName

func GetJobLabelsFromCaptureName(captureName string) map[string]string

func GetSerectLabelsFromCaptureName

func GetSerectLabelsFromCaptureName(captureName string) map[string]string

Types

type VersionSource

type VersionSource string
const (
	// VersionSourceCLI defines the version source as CLI version.
	VersionSourceCLIVersion VersionSource = "CLI version"
	// VersionSourceImage defines the version source as image version.
	VersionSourceOperatorImageVersion VersionSource = "Operator Image"
)

Jump to

Keyboard shortcuts

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