utils

package
v0.0.0-...-20183bb Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentOCPMinorVersion

func GetCurrentOCPMinorVersion(versionString string) (*semver.Version, error)

func IsOperatorMaxOCPVersionCompatibleWithCluster

func IsOperatorMaxOCPVersionCompatibleWithCluster(operatorMaxOCPVersion, currentOCPMinorVersion semver.Version) bool

IsOperatorMaxOCPVersionCompatibleWithCluster compares the operator's maximum openshift version with the current cluster version and returns whether the operator is compatible with the next cluster version. For example,

if maxOCPVersion is 4.18 and currentOCPMinorVersion is 4.17 => compatible
if maxOCPVersion is 4.18 and currentOCPMinorVersion is 4.18 => incompatible
if maxOCPVersion is 4.18 and currentOCPMinorVersion is 4.19 => incompatible

func ToAllowedSemver

func ToAllowedSemver(data []byte) (*semver.Version, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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