version

package
v0.0.0-...-823d357 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DevClusterGenevaLoggingEnvironment   = "Test"
	DevClusterGenevaLoggingConfigVersion = "2.3"
)
View Source
const InstallArchitectureVersion = api.ArchitectureVersionV2

Variables

View Source
var GitCommit = "unknown"
View Source
var InstallStream = &Stream{
	Version:  NewVersion(4, 7, 12),
	PullSpec: "quay.io/openshift-release-dev/ocp-release@sha256:2029c5779202293f23418d47a1a823c4e4c8539c1ab25e8bda30d48335b4892e",
}

InstallStream describes stream we are defaulting to for all new clusters

View Source
var (
	Streams = []*Stream{
		InstallStream,
		{
			Version:  NewVersion(4, 6, 26),
			PullSpec: "quay.io/openshift-release-dev/ocp-release@sha256:e867135cd5a09192635b46ccab6ca7543e642378dc72fa22ea54961b05e322f2",
		},
		{
			Version:  NewVersion(4, 5, 38),
			PullSpec: "quay.io/openshift-release-dev/ocp-release@sha256:688ca8e365fbd4ee4cc8524e2732395560446d2ff90c3d9b8407b159c571ca1c",
		},
		{
			Version:  NewVersion(4, 4, 33),
			PullSpec: "quay.io/openshift-release-dev/ocp-release@sha256:a035dddd8a5e5c99484138951ef4aba021799b77eb9046f683a5466c23717738",
		},
	}
)

Streams 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 MdmImage

func MdmImage(acrDomain string) string

MdmImage contains the location of the MDM container image

func MdsdImage

func MdsdImage(acrDomain string) string

MdsdImage contains the location of the MDSD container image

Types

type Stream

type Stream struct {
	Version  *Version
	PullSpec string
}

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 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) String

func (v *Version) String() string

Jump to

Keyboard shortcuts

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