Improve Server-Side Apply page to address JSON/YAML compatibility with go-yaml

pull/45863/head
pegasas 2024-04-13 21:11:56 +08:00
parent 01bc0afd05
commit c9dd20ee58
1 changed files with 2 additions and 1 deletions

View File

@ -196,7 +196,8 @@ as [YAML](https://yaml.org/), with the media type `application/apply-patch+yaml`
Whether you are submitting JSON data or YAML data, use
`application/apply-patch+yaml` as the `Content-Type` header value.
All JSON documents are valid YAML.
Most JSON documents are accepted as YAML by Kubernetes.
you can find more details on this [open issue](https://github.com/go-yaml/yaml/issues/797)
{{< /note >}}
The serialization is the same as for Kubernetes objects, with the exception that