Skip to content

Commit

Permalink
nit: fix awkward phrasing around pruning behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeldeib committed Jul 1, 2019
1 parent 5634a68 commit 7c47a43
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ Because we want CRDs to make use of these types as well, we introduce the follow
is permitted, though optional.
* `x-kubernetes-preserve-unknown-fields: true` — specifies that the pruning algorithm should not prune any field. This can be combined with `x-kubernetes-embedded-resource`. Note that within a nested `properties` or `additionalProperties` OpenAPI schema the pruning starts again.

One can use `x-kubernetes-preserve-unknown-fields: true` at the root of the schema (and inside any `properties`, `additionalProperties`) to get the traditional CRD behaviour that nothing is prune, despite being `spec.preserveUnknownProperties: false` is set.
One can use `x-kubernetes-preserve-unknown-fields: true` at the root of the schema (and inside any `properties`, `additionalProperties`) to get the traditional CRD behaviour that nothing is pruned, despite setting `spec.preserveUnknownProperties: false`.

## Conclusion

Expand Down

0 comments on commit 7c47a43

Please sign in to comment.