forked from kedacore/keda
-
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.
When fetching the pod data for a known core Kind, use a typed client …
…request instead of Unstructured (kedacore#1457) * When fetching the pod data for a known core Kind, use a typed client request instead of Unstructured. This allows those requests to hit the informer cache while Unstructured gets cannot. If controller-runtime adds support for reading Unstructured gets from the cache, this could be reverted in the future. This also adds the permissions required for setting up watches. Signed-off-by: Noah Kantrowitz <noah@coderanger.net> * Fix controller-gen syntax. Signed-off-by: Noah Kantrowitz <noah@coderanger.net> * Update changelog. Signed-off-by: Noah Kantrowitz <noah@coderanger.net> * Replace reflect magic with a direct implementation for Deployment and StatefulSet. These are the only two core types which can be scaled anyway and this code is much less likely to break at runtime in unexpected ways. Signed-off-by: Noah Kantrowitz <noah@coderanger.net> * Only request cache permissions for Deployments and StatefulSets. These should be the only two types that are needed with it, so minimal permissions are nice. Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
- Loading branch information
1 parent
067c78c
commit 1965813
Showing
4 changed files
with
51 additions
and
17 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