Skip to content

yaml_scalars

Tanveer Alam edited this page Dec 7, 2019 · 1 revision

Scalars

Scalars:

  • String, number, boolean
    • Whitespace permitted
  • Use quotes (single or double) to convert a non-string scalar into a string scalar
    • Double quotes permit escape sequences.
    datacenter:
      cab: "13"
      can_unit: '3'
      cab_name: "Cab 01\n"
      cab_driver_name: Person A
  • Multiline scalars:
    • Block style(preserves newlines)
    donwtime_sch: |
      2018-10-31 - kernel upgrade
      2019-02-02 - security fix
    This will keep them in two separate lines.
    comments: >
      Experiencing high I/O
      since 2018-10-01.
      Currently investigating.
    This will keep them all in single line.

HELM


YAML Essentials


Helm Deep Dive

Clone this wiki locally