Quiz: What is the semantic distinction between the pipe '|' and greater-than '>' multiline string operators in YAML?
… pipe (|) preserves literal line breaks (ideal for bash scripts); the greater-than (>) folds lines into a continuous sentence.
Find tutorials, system documentation, dynamic pages, and interactive quizzes in one place.
… pipe (|) preserves literal line breaks (ideal for bash scripts); the greater-than (>) folds lines into a continuous sentence.
YAML supports compact flow sequences using JSON-style square brackets: [ 'item1', 'item2' ] .
Comments in YAML begin with the hash ( # ) character and extend to the end of that line.
apiVersion specifies the versioned schema (e.g., apps/v1 , v1 ) against which Kubernetes evaluates the resource definition.
YAML represents null values using either the literal null keyword or a solitary tilde ( ~ ).
depends_on expresses startup and shutdown sequencing between services when executing docker compose up .
Three hyphens ( --- ) mark the beginning of a new YAML document within a multi-document file.
The on key defines repository events (e.g., push , pull_request , schedule ) that trigger the workflow.