-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize calls to GCE InstanceGroup API.
Part of the validation for GKE Shielded Node client certificates verifies that the Instance that created the CSR was created by GKE. To do this, we look up all the MIGs (Managed Instance Groups) created by GKE, list instances in each group to find the Instance. This gets expensive and wasteful if there are lot of MIGs in the cluster. We use the instance-metdata key `created-by` as a hint to optimize this search. Since instance-metadata keys are user modifiable, we cannot trust the value of `created-by` implicitly.
- Loading branch information
Showing
2 changed files
with
99 additions
and
27 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