version

package
v1.2.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: Apache-2.0 Imports: 12 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 CatalogChannel added in v0.10.0

func CatalogChannel() string

CatalogChannel returns a channel for Everest catalog.

func CatalogImage

func CatalogImage(v *goversion.Version) string

CatalogImage returns a catalog image name.

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 ManifestURL added in v0.10.0

func ManifestURL(v *goversion.Version) string

ManifestURL returns a manifest URL to install Everest.

Types

type RecommendedVersion added in v0.10.0

type RecommendedVersion struct {
	Catalog         *goversion.Version
	EverestOperator *goversion.Version
	OLM             *goversion.Version
	PG              *goversion.Version
	PSMDB           *goversion.Version
	PXC             *goversion.Version
}

RecommendedVersion holds recommended versions per component.

func RecommendedVersions added in v0.10.0

func RecommendedVersions(meta *version.MetadataVersion) (*RecommendedVersion, error)

RecommendedVersions returns recommended version information based on metadata.

Jump to

Keyboard shortcuts

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