Documentation ¶
Index ¶
- Constants
- Variables
- func ClusterVersionIsLessThan4_4(ctx context.Context, configcli configclient.Interface) (bool, error)
- func CreateSemverFromMinorVersionString(v string) *semver.Version
- func FluentbitImage(acrDomain string) string
- func GateKeeperImage(acrDomain string) string
- func IsClusterUpgrading(cv *configv1.ClusterVersion) bool
- func MUOImage(acrDomain string) string
- func MdmImage(acrDomain string) string
- func MdsdImage(acrDomain string) string
- type Stream
- type Version
Constants ¶
const ( DevClusterGenevaLoggingAccount = "AROClusterLogs" DevClusterGenevaLoggingConfigVersion = "2.4" DevClusterGenevaLoggingNamespace = "AROClusterLogs" DevClusterGenevaMetricsAccount = "AzureRedHatOpenShiftCluster" DevGenevaLoggingEnvironment = "Test" DevRPGenevaLoggingAccount = "ARORPLogs" DevRPGenevaLoggingConfigVersion = "4.3" DevRPGenevaLoggingNamespace = "ARORPLogs" DevRPGenevaMetricsAccount = "AzureRedHatOpenShiftRP" DevGatewayGenevaLoggingConfigVersion = "4.3" )
const InstallArchitectureVersion = api.ArchitectureVersionV2
Variables ¶
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.
var GitCommit = "unknown"
Functions ¶
func CreateSemverFromMinorVersionString ¶
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 ¶
FluentbitImage contains the location of the Fluentbit container image
func GateKeeperImage ¶
GateKeeperImage contains the location of the GateKeeper container image
func IsClusterUpgrading ¶
func IsClusterUpgrading(cv *configv1.ClusterVersion) bool
func MdmImage ¶
MdmImage contains the location of the MDM container image https://eng.ms/docs/products/geneva/collect/references/linuxcontainers
func MdsdImage ¶
MdsdImage contains the location of the MDSD container image https://eng.ms/docs/products/geneva/collect/references/linuxcontainers
Types ¶
type Version ¶
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