Helm 3 complete tutorial (9): Helm function explanation (3) type conversion function, regular expression 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

Type conversion function

Helm provides the following type conversion functions:

  • atoi: Convert a string to an integer
  • float64: Convert to float64 type
  • int: Convert to int type
  • int64: Converted to int64 type
  • toDecimal: Convert unix octal to int64
  • toString: Convert to string
  • toStrings: Convert a list, slice or array into a list of strings
  • toJson( mustToJson): Convert a list, slice, array, dictionary or object into JSON
  • toPrettyJson( mustToPrettyJson): Convert a list, slice, array, dictionary or object into formatted JSON

Guess you like

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