Helm 3 complete tutorial (16): Helm function explanation (10) version semantic function, URL function, UUID function

Summarizes the common knowledge points and concepts of Helm 3. Part of the content in the document comes from major blogs and official documents, and some content has been reorganized based on my own understanding and practice. All concept explanations will be equipped with practical codes. The article is updated from time to time, welcome to follow and subscribe (a paid column is opened, otherwise it will be crawled away by other private websites. Please be considerate of the big brothers and sisters, it is just a lunch, and please support it).
Link to the original text of this column: https://blog.csdn.net/xzk9381/category_10895812.html, please indicate the source for reprinting

Version semantic function

Helm provides some functions for handling version numbers:

  • semver function
  • semverCompare function

1. semver function

The semver function is used to parse the version number according to semantics:

$version := semver "1.2.3-alpha.1+123"

$versionIs a pointer to an Versionobject and contains the following properties:

  • $version.Major: Major version number (above 1)
  • $version.Minor:Minor version number (on

Guess you like

Origin blog.csdn.net/xzk9381/article/details/115375724