A 10 minute read covering some YAML edge-cases that you should have in mind when writing complex YAML files

  • @[email protected]
    link
    fedilink
    362 months ago

    You shouldn’t write complex yaml files. Keep it simple and yaml is great. Do complex stuff and you’ll hate your life.

    • @[email protected]
      link
      fedilink
      292 months ago

      If you write your own tooling then it’s great. The vast majority of us are using other people’s tooling and have to deal with their imposed complexity. I for one hate GitHub actions with a passion.

      • @[email protected]
        link
        fedilink
        122 months ago

        None of the complexity of GitHub actions would be solved with any other configuration language. It needs to be a full scripting language at minimum. The problems with GHA have nothing to do with yaml.

      • @[email protected]
        link
        fedilink
        English
        8
        edit-2
        2 months ago

        I’m convinced everybody who told me that “GitHub actions are great!” were just part of one big prank.

        • @rottingleaf
          link
          12 months ago

          Kubernetes seems closer to the top of the tower of Babel than to the basement. Part of it anyway.

    • Eager Eagle
      link
      English
      42 months ago

      I wouldn’t call those examples complex

    • @rottingleaf
      link
      22 months ago

      If you keep it simple, then probably JSON is easier. In other cases too.

      • @[email protected]
        link
        fedilink
        12 months ago

        JSON is not easier for most strings. Anything multiline for example.

        But yaml is a superset of JSON so you literally can use JSON and it’s still valid YAML.