Skip to content

Commit

Permalink
smp: OpenAPI annotations are now allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhita committed Dec 26, 2017
1 parent be9eeca commit b5f71cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contributors/devel/strategic-merge-patch.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ container lists to merge together based on the `name` field.

To solve this problem, Strategic Merge Patch uses the go struct tag of the API
objects to determine what lists should be merged and which ones should not.
Currently the metadata is available as struct tags on the API objects
themselves, but will become available to clients as Swagger annotations in the
future. In the above example, the `patchStrategy` metadata for the `containers`
The metadata is available as struct tags on the API objects
themselves and also available to clients as [OpenAPI annotations](https://github.com/kubernetes/kubernetes/blob/master/api/openapi-spec/README.md#x-kubernetes-patch-strategy-and-x-kubernetes-patch-merge-key).
In the above example, the `patchStrategy` metadata for the `containers`
field would be `merge` and the `patchMergeKey` would be `name`.


Expand Down

0 comments on commit b5f71cf

Please sign in to comment.