This message was deleted.
# random
a
This message was deleted.
c
Kubernetes resources are stored as json internally, in etcd. Things like the specific yaml formatting aren't guaranteed to be retained when round-tripping. The actual value is the same, it's just how it's presented that differs.
f
“|” “|-” “|+” “>” different
Copy code
config: |
  "hello"
# Json 格式:{"config": "hello\n"}  
  
config: |-
  "hello"
# Json 格式:{"config": "hello"}  

config: |+
  "hello"
“>” It adds a lot of newline characters
When yaml is like this
A newline becomes a space
When my config have space
Save and reedit,A newline character is added。
@creamy-pencil-82913 hello