Documentation ¶
Index ¶
Constants ¶
const APIEnvName = "CSM_RELEASE"
APIEnvName defines the environment variable to read the CSM installation version from for checking the API version against.
const APIKeyName = "csm-version"
APIKeyName defines the name of the parameter and input file's key that defines the target API version.
const MinimumVersion = "v1.4"
MinimumVersion defines the minimum CSI API version that this application is back-wards compatible with. NOTE: This should never change to a higher version, support should grow backwards or remain
the same (e.g. changing to v1.2 is acceptable, changing to v1.5 is not).
Variables ¶
This section is empty.
Functions ¶
func CompareMajorMinor ¶
CompareMajorMinor is the same as Compare but only considers the major and minor version numbers. Useful for resolving whether a given full-release equal to a parent release. (e.g. v1.2.3 vs v1.2.4 evaluates as equal).
func DetectedVersion ¶
DetectedVersion returns the version of CSM detected in the environment by the APIEnvName.
func IsCompatible ¶
IsCompatible returns whether the currently set version is compatible with this variant of CSI or not.
Types ¶
This section is empty.