forked from Wind-River/cloud-platform-deployment-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support validating internal list items on list types
When using kubernetes-sigs/controller-tools v2 and above, there's a know issue that the validation on intertal list items is no longer supported. See in: kubernetes-sigs/controller-tools#342. This issue is opened 2 years ago and currently frozen(seems will not fix in a short term). We can set a alia of the item type to introduce the validation instead, otherwise, we'll need to remove these validations. This commit gives an example about the effort to set the validation with alia type on the subfunctions for review. Note: there's still many validation of the items in a "StringList" need to implement. Signed-off-by: Yuxing Jiang <Yuxing.Jiang@windriver.com>
- Loading branch information
Showing
7 changed files
with
40 additions
and
67 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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