This repository has been archived by the owner on May 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed SecretChecksumAnnotation from cluster secret annotations
This commit removes SecretChecksumAnnotation annotation. In the current implementation this annotation is a must-have item that ensures that the cluster was provisioned correctly and notifies clusterclientstore on secret changes. In this commit we remove this annotation and re-compute cluster secret checksum every time syncSecret/1 is being invoked. This approach ensures no preliminary config is needed to get a cluster object to an operating state. Every time a cluster secret changes, the cache invalidates the stored cluster object and re-creates it. Signed-off-by: Oleg Sidorov <oleg.sidorov@booking.com>
- Loading branch information
1 parent
0b1a2f5
commit 8f75e3f
Showing
6 changed files
with
111 additions
and
72 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,8 @@ type server struct { | |
ch ch | ||
} | ||
|
||
var _ CacheServer = (*server)(nil) | ||
|
||
type ch struct { | ||
stop chan struct{} | ||
|
||
|
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