forked from hashicorp/consul
-
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.
connect: don't get pods from the API to determine if ACL should be de…
…leted (hashicorp#580) Endpoints controller may have stale cache for pod objects since it's only watching the endpoints objects. As a result when we try to get a pod from cache, it may be stale. For the case of deleting ACL tokens, we can't tolerate stale cache reads since we need to know for sure if the pod exists to determine if an ACL token for that pod should be deleted. This commit changes it to instead use the pod info stored in the endpoints addresses as TargetRef.
- Loading branch information
Showing
4 changed files
with
15 additions
and
24 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