-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add x-preserve... to Constraint kind status
Gatekeeper adds the byPod field to the status of a Constraint once it is applied to the cluster. This previously relied on the preservation of unknown fields by the API server. As we are now applying Constraint kind CRDs as v1 CRDs, this behavior breaks. This PR adds an empty `status` to the Constraint kind's CRD's schema. That status includes the `x-kubernetes-preserve-unknown-fields: true` key/value pair, retaining the existing Gatekeeper functionality. Contributes to open-policy-agent/gatekeeper#550 Signed-off-by: juliankatz <juliankatz@google.com>
- Loading branch information
1 parent
3501137
commit 5c03494
Showing
2 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters