Skip to content

Commit f5eee4f

Browse files
authored
Merge pull request kubernetes#50116 from MohammadAlavi1986/ssa_fix
SSA request bodies can include either JSON or YAML
2 parents bea77e0 + 5b9d14d commit f5eee4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: content/en/docs/reference/using-api/server-side-apply.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -578,8 +578,8 @@ Apply can send partially specified objects as YAML as the body of a `PATCH` requ
578578
to the URI of a resource. When applying a configuration, you should always include all the
579579
fields that are important to the outcome (such as a desired state) that you want to define.
580580

581-
All JSON messages are valid YAML. Some clients specify Server-Side Apply requests using YAML
582-
request bodies that are also valid JSON.
581+
All JSON messages are valid YAML. Therefore, in addition to using YAML request bodies for Server-Side Apply requests, you can also use JSON request bodies, as they are also valid YAML.
582+
In either case, use the media type `application/apply-patch+yaml` for the HTTP request.
583583

584584
### Access control and permissions {#rbac-and-permissions}
585585

0 commit comments

Comments
 (0)