version

package
v0.0.0-...-69378fb Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: Apache-2.0 Imports: 12 Imported by: 33

Documentation

Index

Constants

View Source
const (
	DevClusterGenevaLoggingAccount       = "AROClusterLogs"
	DevClusterGenevaLoggingConfigVersion = "2.4"
	DevClusterGenevaLoggingNamespace     = "AROClusterLogs"
	DevClusterGenevaMetricsAccount       = "AzureRedHatOpenShiftCluster"
	DevGenevaLoggingEnvironment          = "Test"
	DevRPGenevaLoggingAccount            = "ARORPLogs"
	DevRPGenevaLoggingConfigVersion      = "4.3"
	DevRPGenevaLoggingNamespace          = "ARORPLogs"
	DevRPGenevaMetricsAccount            = "AzureRedHatOpenShiftRP"

	DevGatewayGenevaLoggingConfigVersion = "4.3"
)
View Source
const InstallArchitectureVersion = api.ArchitectureVersionV2

Variables

View Source
var DefaultInstallStream = Stream{
	Version:  NewVersion(4, 13, 40),
	PullSpec: "quay.io/openshift-release-dev/ocp-release@sha256:c1f69e6137bc9cda2c6da56bafbc7ea969900acb5e5c349b1ebb2103b10b424f",
}

Install stream data for production and INT has moved to RP-Config. This default is left here ONLY for use by local development mode, until we can come up with a better solution.

View Source
var GitCommit = "unknown"

Functions

func ClusterVersionIsLessThan4_4

func ClusterVersionIsLessThan4_4(ctx context.Context, configcli configclient.Interface) (bool, error)

func CreateSemverFromMinorVersionString

func CreateSemverFromMinorVersionString(v string) *semver.Version

CreateSemverFromMinorVersionString takes in a string representing a semantic version number that is missing the patch version from the end (ex.: "4.13") and appends a ".0" and returns a semver.Version. It results in a panic if v + ".0" does not turn out to be a valid semantic version number. This function is useful for applications such as making it easier to compare strings that represent OpenShift minor versions.

func FluentbitImage

func FluentbitImage(acrDomain string) string

FluentbitImage contains the location of the Fluentbit container image

func GateKeeperImage

func GateKeeperImage(acrDomain string) string

GateKeeperImage contains the location of the GateKeeper container image

func IsClusterUpgrading

func IsClusterUpgrading(cv *configv1.ClusterVersion) bool

func MUOImage

func MUOImage(acrDomain string) string

MUOImage contains the location of the Managed Upgrade Operator container image

func MdmImage

func MdmImage(acrDomain string) string

MdmImage contains the location of the MDM container image https://eng.ms/docs/products/geneva/collect/references/linuxcontainers

func MdsdImage

func MdsdImage(acrDomain string) string

MdsdImage contains the location of the MDSD container image https://eng.ms/docs/products/geneva/collect/references/linuxcontainers

Types

type Stream

type Stream struct {
	Version  *Version `json:"version"`
	PullSpec string   `json:"-"`
}

type Version

type Version struct {
	V      [3]uint32
	Suffix string
}

func GetClusterVersion

func GetClusterVersion(cv *configv1.ClusterVersion) (*Version, error)

GetClusterVersion fetches the version of the openshift cluster. Note that it assumes the most recently applied version is cv.Status.History[0] assuming the State == Completed. If for some reason there is no cluster version history, it will return the most recently updated version in history

func NewVersion

func NewVersion(vs ...uint32) *Version

func ParseVersion

func ParseVersion(vsn string) (*Version, error)

func (*Version) Eq

func (v *Version) Eq(w *Version) bool

func (*Version) Lt

func (v *Version) Lt(w *Version) bool

func (*Version) MarshalJSON

func (v *Version) MarshalJSON() ([]byte, error)

func (*Version) MinorVersion

func (v *Version) MinorVersion() string

func (*Version) String

func (v *Version) String() string

Jump to

Keyboard shortcuts

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