Documentation
¶
Index ¶
- Variables
- type Components
- type Info
- func (i *Info) IsEqual(other *Info) bool
- func (i *Info) IsEqualExceptPatch(other *Info) bool
- func (i *Info) IsEqualOrNewer(inVer string) bool
- func (i *Info) IsOlder(inVer string) bool
- func (i *Info) IsSupported(minVersion string) bool
- func (i *Info) IsUnsupported(minVersion string) bool
- func (i *Info) IsValidUpgradePath(targetVer string) (ok bool, failureReason string)
Constants ¶
This section is empty.
Variables ¶
var UpgradePaths = map[Components]Info{
{11, 0, 0}: {"v11.1.x", Components{11, 1, 0}},
{11, 0, 1}: {"v11.1.x", Components{11, 1, 0}},
{11, 0, 2}: {"v11.1.x", Components{11, 1, 0}},
{11, 1, 0}: {"v12.0.x", Components{12, 0, 0}},
{11, 1, 1}: {"v12.0.x", Components{12, 0, 0}},
{12, 0, 0}: {"v23.3.x", Components{23, 3, 0}},
{12, 0, 1}: {"v23.3.x", Components{23, 3, 0}},
{12, 0, 2}: {"v23.3.x", Components{23, 3, 0}},
{12, 0, 3}: {"v23.3.x", Components{23, 3, 0}},
{12, 0, 4}: {"v23.3.x", Components{23, 3, 0}},
{23, 3, 0}: {"v23.4.x", Components{23, 4, 0}},
}
UpgradePaths has all of the vertica releases supported by the operator. For each release, the next release that must be upgrade too. Use this map to know if a new version is the next supported version by Vertica.
As a general rule of thumb, this map needs to be updated each time a new Vertica version introduces a new major or minor version (e.g. 11.1.x -> 12.0.x). You don't need to update it for patch releases because we only enforce the upgrade path for major/minor versions.
Functions ¶
This section is empty.
Types ¶
type Components ¶ added in v1.3.0
type Components struct {
VdbMajor, VdbMinor, VdbPatch int
}
type Info ¶
type Info struct {
VdbVer string // The version that was extracted from a vdb
Components // The same version as VdbVer but broken down into individual components
}
func MakeInfoFromStr ¶ added in v1.3.0
func MakeInfoFromStr(curVer string) (*Info, bool)
MakeInfoFromStr will construct an Info struct by parsing the version string
func (*Info) IsEqual ¶ added in v1.3.0
func (i *Info) IsEqual(other *Info) bool
IsEqual compares two versions to see if they are equal
func (*Info) IsEqualExceptPatch ¶ added in v1.4.0
func (i *Info) IsEqualExceptPatch(other *Info) bool
IsEqualExceptPatch compares two versions major/minor versions to see if they are equal
func (*Info) IsEqualOrNewer ¶
func (i *Info) IsEqualOrNewer(inVer string) bool
IsEqualOrNewer returns true if the version in the Vdb is is equal or newer than the given version
func (*Info) IsOlder ¶ added in v1.7.0
func (i *Info) IsOlder(inVer string) bool
IsOlder returns true if the version in info is older than the given version
func (*Info) IsSupported ¶
func (i *Info) IsSupported(minVersion string) bool
IsSupported returns true if the version in the vdb is a supported version by the operator.
func (*Info) IsUnsupported ¶
func (i *Info) IsUnsupported(minVersion string) bool
IsUnsupported returns true if the version in the vdb is unsupported by the operator.
func (*Info) IsValidUpgradePath ¶ added in v1.3.0
func (i *Info) IsValidUpgradePath(targetVer string) (ok bool, failureReason string)
IsValidUpgradePath will return true if the current version is allowed to upgrade to targetVer. This will return false if the path isn't compatible.