Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var GitRevision = "UNKNOWN"
GitRevision is the commit of repo
var VelaVersion = "UNKNOWN"
VelaVersion is the version of cli.
Functions ¶
func GetOfficialKubeVelaVersion ¶ added in v1.2.3
GetOfficialKubeVelaVersion extracts the KubeVela version from the provided string More precisely, this method returns the segments and prerelease info w/o metadata
func IsOfficialKubeVelaVersion ¶ added in v1.2.3
IsOfficialKubeVelaVersion checks whether the provided version string follows a KubeVela version pattern
func ModuleRequireVersion ¶
func ModuleRequireVersion() string
ModuleRequireVersion returns a semver suitable for a scaffolded go.mod `require github.com/oam-dev/kubevela <ver>` line. It prefers the running binary's build-time VelaVersion and falls back to defaultModuleRequireVersion when VelaVersion is not a valid semver (dev builds without ldflags).
func ShouldUseLegacyHelmRepo ¶ added in v1.9.3
ShouldUseLegacyHelmRepo checks whether the provided version should use the legacy helm repo
Types ¶
This section is empty.