version

package
v0.0.0-...-968b1e8 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

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 GitCommit = "unknown"
View Source
var InstallStream = &Stream{
	Version:  NewVersion(4, 11, 16),
	PullSpec: "quay.io/openshift-release-dev/ocp-release@sha256:97410a5db655a9d3017b735c2c0747c849d09ff551765e49d5272b80c024a844",
}

InstallStream describes stream we are defaulting to for all new clusters

View Source
var (
	UpgradeStreams = []*Stream{
		InstallStream,
		{
			Version:  NewVersion(4, 10, 20),
			PullSpec: "quay.io/openshift-release-dev/ocp-release@sha256:b89ada9261a1b257012469e90d7d4839d0d2f99654f5ce76394fa3f06522b600",
		},
		{
			Version:  NewVersion(4, 9, 28),
			PullSpec: "quay.io/openshift-release-dev/ocp-release@sha256:4084d94969b186e20189649b5affba7da59f7d1943e4e5bc7ef78b981eafb7a8",
		},
		{
			Version:  NewVersion(4, 8, 18),
			PullSpec: "quay.io/openshift-release-dev/ocp-release@sha256:321aae3d3748c589bc2011062cee9fd14e106f258807dc2d84ced3f7461160ea",
		},
		{
			Version:  NewVersion(4, 7, 30),
			PullSpec: "quay.io/openshift-release-dev/ocp-release@sha256:aba54b293dc151f5c0fd96d4353ced6ced3e7da6620c1c10714ab32d0577486f",
		},
		{
			Version:  NewVersion(4, 6, 44),
			PullSpec: "quay.io/openshift-release-dev/ocp-release@sha256:d042aa235b538721a39989b13d7d9d3537af9b57e9fd10f485dd04461932ec85",
		},
		{
			Version:  NewVersion(4, 5, 39),
			PullSpec: "quay.io/openshift-release-dev/ocp-release@sha256:c4b9eb565c64df97afe7841bbcc0469daec7973e46ae588739cc30ea9062172b",
		},
		{
			Version:  NewVersion(4, 4, 33),
			PullSpec: "quay.io/openshift-release-dev/ocp-release@sha256:a035dddd8a5e5c99484138951ef4aba021799b77eb9046f683a5466c23717738",
		},
	}
)

UpgradeStreams describes list of streams we support for upgrades

Functions

func FluentbitImage

func FluentbitImage(acrDomain string) string

FluentbitImage contains the location of the Fluentbit container image

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:"-"`
}

func GetUpgradeStream

func GetUpgradeStream(streams []*Stream, v *Version, upgradeY bool) *Stream

GetUpgradeStream returns an upgrade Stream for a Version or nil if no upgrade should be performed.

type Version

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

func GetClusterDesiredVersion

func GetClusterDesiredVersion(ctx context.Context, configcli configclient.Interface) (*Version, error)

func GetClusterVersion

func GetClusterVersion(ctx context.Context, configcli configclient.Interface) (*Version, error)

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