<p>For example, in the following secret file(example taken from <a href="https://kubernetes.io/docs/concepts/configuration/secret/#creating-a-secret-manually" rel="nofollow noreferrer">here</a>):</p>

<pre><code>apiVersion: v1
kind: Secret
metadata:
  name: mysecret
type: Opaque
stringData:
  config.yaml: |-
    apiUrl: "https://my.api.com/api/v1"
    username: {{username}}
    password: {{password}}
</code></pre>

<p>What does <code>|-</code> mean?</p>

<p>That is Block Chomping Indicator from yaml spec.<br>
Reference : <a href="https://yaml.org/spec/1.2/spec.html#id2794534" rel="nofollow noreferrer">https://yaml.org/spec/1.2/spec.html#id2794534</a></p>

<p><strong>|-</strong><br>
"strip": remove the line feed, remove the trailing blank lines from the block.</p>
