-
-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Constrain Resource trait and Api::namespaced by Scope (#956)
* Constrain Resource trait and Api::namespaced by Scope To prevent the namespace type errors we've been seeing for ages that we have the tools to prevent. Early sketch. Signed-off-by: clux <sszynrae@gmail.com> * Extend kube-core to specify new Scope associated type on Resource Signed-off-by: clux <sszynrae@gmail.com> * quick compile tests Signed-off-by: clux <sszynrae@gmail.com> * doc for Api ctors and compile_fail doctests on namespaced Signed-off-by: clux <sszynrae@gmail.com> * fix cargo deny issue Signed-off-by: clux <sszynrae@gmail.com> * better wording on default namespace doc Signed-off-by: clux <sszynrae@gmail.com> * use consistent naming of scope structs Signed-off-by: clux <sszynrae@gmail.com>
- Loading branch information
Showing
6 changed files
with
139 additions
and
15 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
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