0

This is a yaml of a config map I came across ?

---
apiVersion: v1
kind: ConfigMap
metadata:
  name: foobar
  namespace: ksys
data:
  cloud-config: |-
    address: "cloud-provider-service:8085"

Can anyone tell me what |- means here ? Any link that would give me more info ? Is this yaml specific or Kubernetes specific ?

James Franco
  • 4,516
  • 10
  • 38
  • 80

1 Answers1

0

| will indicate this block contains newlines and - indicates strip away the last newline of this block. In simple terms, |- will let your lines in the block be separated by newline and strip the newline at the end of the block or cloud-config.

Raihan Khan
  • 191
  • 5