forked from tektoncd/pipeline
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When we were using kubebuilder, it generated openAPIV3schema validation for us in our CRD declarations. However: 1. No other knative projects use this 2. Continuing to use this is forcing us to diverge from the other Knative projects, specifically I found that `Status` fields, although optional, were being required by the validation (as described at kubernetes/apiextensions-apiserver#25), and the best way to work around it seemed to be to make them nullable (as per https://stackoverflow.com/questions/18088294/how-to-not-marshal-an-empty-struct-into-json-with-go) i.e. pointers, which is different from how Knative works, and introduces new problems (such as handling when these fields are null) 3. We (or at least @pivotal-nader-ziada and @shashwathi for sure!) were maintaining these fiels manually :O
- Loading branch information
1 parent
70b951d
commit f5e8a43
Showing
6 changed files
with
0 additions
and
637 deletions.
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
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
Oops, something went wrong.