Skip to content

Commit

Permalink
nit: fix awkward phrasing around pruning behavior (#15226)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeldeib authored and k8s-ci-robot committed Jul 6, 2019
1 parent d065457 commit cd2cb31
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ Because we want CRDs to make use of these types as well, we introduce the follow

* `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 cd2cb31

Please sign in to comment.