version

package
v1.4.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package version provides methods to determine the correct version of components.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ProjectName is a component name, e.g. everest API Server, everestctl.
	ProjectName string //nolint:gochecknoglobals
	// Version is a component version e.g. v0.3.0-1-a93bef.
	Version string //nolint:gochecknoglobals
	// FullCommit is a git commit hash.
	FullCommit string //nolint:gochecknoglobals
	// EverestChannelOverride overrides the default olm channel for Everest operator.
	EverestChannelOverride string //nolint:gochecknoglobals
)

Functions

func EverestVersionFromDeployment added in v0.10.0

func EverestVersionFromDeployment(ctx context.Context, dg deploymentGetter) (*goversion.Version, error)

EverestVersionFromDeployment returns Everest version from the k8s deployment resource.

func FullVersionInfo

func FullVersionInfo() string

FullVersionInfo returns full version report.

func FullVersionJSON

func FullVersionJSON() (string, error)

FullVersionJSON returns version info as JSON.

func IsDev

func IsDev(v string) bool

IsDev checks if the version is a development version.

func IsRC

func IsRC(v string) bool

IsRC checks if the version is a release candidate.

Types

This section is empty.

Jump to

Keyboard shortcuts

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