Specifying the string-value ‘Yes’ in YAML

It depends 😉 In YAML 1.1 the bool type is defined as following: A Boolean represents a true/false value. Booleans are formatted as English words (“true”/“false”, “yes”/“no” or “on”/“off”) for readability and may be abbreviated as a single character “y”/“n” or “Y”/“N”. The regexp the parser should use is y|Y|yes|Yes|YES|n|N|no|No|NO| true|True|TRUE|false|False|FALSE| on|On|ON|off|Off|OFF In YAML 1.2.2 … Read more

Can I speedup YAML?

You’ve probably noticed that Python’s syntax for data structures is very similar to JSON’s syntax. What’s happening is Python’s json library encodes Python’s builtin datatypes directly into text chunks, replacing ‘ into ” and deleting , here and there (to oversimplify a bit). On the other hand, pyyaml has to construct a whole representation graph … Read more

Error: selector does not match template labels

It seems you are in trouble. Check this section: Label selector updates Note: In API version apps/v1, a Deployment’s label selector is immutable after it gets created. So, this line say you can not update selector once deployment is created. Selector can not be changed for any API version except apps/v1beta1 and extension/v1beta1. Ref: TestDeploymentSelectorImmutability. … Read more

what’s the double arrow (

<< and * are both YAML keys (you can also think of them as operators). And one more key related to your question is &. In YAML, you can define anchors and later use them. For example, foo: &myanchor key1: “val1” key2: “val2” bar: *myanchor In this code snippet, & defines an anchor names it … Read more