33 Matching Annotations
  1. Sep 2026
    1. Kubernetes Promotes KYAML as a Safer, More Consistent Way to Work with Manifests
      • Overview and Purpose:
        • KYAML is a safer, less ambiguous subset of YAML tailored specifically for Kubernetes configurations.
        • Designed to eliminate classic YAML pitfalls like indentation sensitivity and implicit type coercion.
        • Maintains full backward compatibility with standard YAML parsers and existing Kubernetes tooling.
      • Key Motivation:
        • Standard YAML reliance on whitespace and automatic casting causes frequent failures in CI/CD pipelines and templating engines (e.g., Helm).
        • Solves configuration bugs by strictly requiring explicit structure and types.
      • Syntax and Formatting Rules:
        • Employs flow-style syntax: {} denotes objects/mappings, while [] denotes arrays/lists.
        • Enforces explicit string quoting—all string scalar values must be enclosed in double quotes ("").
      • Lifecycle & Integration:
        • Introduced as an alpha feature in Kubernetes v1.34, enabled by default in v1.35, and promoted to stable in v1.37.
        • Supported directly across Kubernetes tooling and kubectl output formatting.
  2. Sep 2024
  3. May 2024
  4. Nov 2023
  5. May 2023
    1. In the Pandoc Plugin settings, add — citeproc to the ‘Extra Pandoc arguments’ setting. This will be what takes the markdown citations and converts them to in-text citations in the conversion process. It also inserts a full reference list on the end of your document automatically, all completely formatted. To get this to work, you have to specify the location of the .bib file on your system by adding the path, in quotations, to a ‘bibliography’ YAML property.
  6. Jan 2023
    1. Python — Json documents double as valid Python literals with minimal adaptation, and Python supports trailing commas and comments. It has variables and functions, powerful string interpolation, and json.dump built in. A self-contained Python file that prints json to stdout goes a long way!

      If you would like to template yaml, then rather do it in Nix or Python

    2. always quote all strings. (Indeed, you can tell that somebody is an experienced yaml engineer when they defensively quote all the strings.) We can choose to always use true and false rather than yes and no, and generally stay away from the arcane features.

      Advices for yaml users

    3. I think the main reason that yaml is so prevalent despite its pitfalls, is that for a long time it was the only viable configuration format.

      Yaml has strange issues, but is popular as it was one of the 1st options

  7. Dec 2022
  8. Nov 2022
  9. Sep 2022
  10. May 2022
  11. Mar 2022
  12. Jan 2022
    1. An extension to python markdown that takes metadata embedded as YAML in a page of markdown and render it as JSON-LD in the HTML created by MkDocs.
      • YAML input

        "@context": "http://schema.org"
        "@id": "#lesson1"
        "@type":
          - CreativeWork
        learningResourceType: LessonPlan
        hasPart: {
        "@id": "#activity1"
        }
        author:
          "@type": Person
          name: Phil Barker
        
      • Default JSON-LD output

        <script type="application/ld+json">
        { "@context":  "http://schema.org",
        "@id": "#lesson1",
        "@type":["CreativeWork"],
        "learningResourceType": "LessonPlan",
        "name": "Practice Counting Strategies",
        "hasPart": {
          "@id": "#activity1-1"
        }
        "author": {
          "@type": "Person"
          "name": "Phil Barker"
        }
        }
        </script>
        
  13. Aug 2021
  14. Sep 2020
  15. Jul 2020
  16. May 2020
  17. Apr 2020
    1. A notebook, at a very basic level, is just a bunch of JSON that references blocks of code and the order in which they should be executed.But notebooks prioritize presentation and interactivity at the expense of reproducibility. YAML is the other side of that coin, ignoring presentation in favor of simplicity and reproducibility—making it much better for production.

      Summary of the article:

      Notebook = presentation + interactivity

      YAML = simplicity + reproducibility

  18. Mar 2020
    1. I wrote a plugin for Vim that lets you easily toggle a YML file between nested format: xx.yml1 2 3 4 en: baz: "baize" foo: bar: "baare" and a flat format: xx.yml1 2 en.baz: "baize" en.foo.bar: "baare" This is really useful, as the flat format is easier to search and edit.
  19. Feb 2020
  20. Sep 2017
    1. Note: When mapping ports in the HOST:CONTAINER format, you may experience erroneous results when using a container port lower than 60, because YAML will parse numbers in the format xx:yy as sexagesimal (base 60). For this reason, we recommend always explicitly specifying your port mappings as strings.

      Cool feature

  21. Mar 2017