Skip to content
This repository has been archived by the owner on Sep 14, 2020. It is now read-only.

Commit

Permalink
Permit arbitrary fields in spec of demo CRDs (same as it was before)
Browse files Browse the repository at this point in the history
  • Loading branch information
nolar committed May 11, 2020
1 parent 50d01c8 commit c8869f6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/walkthrough/resources.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ For Kubernetes 1.15 and below:
openAPIV3Schema:
type: object
properties:
spec:
type: object
x-kubernetes-preserve-unknown-fields: true
status:
type: object
x-kubernetes-preserve-unknown-fields: true
Expand Down Expand Up @@ -67,6 +70,9 @@ For Kubernetes 1.16 and above:
openAPIV3Schema:
type: object
properties:
spec:
type: object
x-kubernetes-preserve-unknown-fields: true
status:
type: object
x-kubernetes-preserve-unknown-fields: true
Expand Down
3 changes: 3 additions & 0 deletions examples/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ spec:
openAPIV3Schema:
type: object
properties:
spec:
type: object
x-kubernetes-preserve-unknown-fields: true
status:
type: object
x-kubernetes-preserve-unknown-fields: true
Expand Down

0 comments on commit c8869f6

Please sign in to comment.