forked from bitnami-labs/sealed-secrets
-
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.
Added sort by key creation timestamp on startup
Controller now reads old keys on startup in order of their creation times. This means the last key added is guaranteed to be the most recent. This commit also fixes an integration test issue when integration tests are run against a controller with more than one key. Issue was that fetching keys may not retrieve them in order, meaning the tests were encrypting the test secret with a different key (via kubeseal) that unencrypting (via retrieved private key), causing some tests to fail. Sort in the tests fixes this issue.
- Loading branch information
Showing
3 changed files
with
23 additions
and
8 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