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 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chart repo instances implement a new method Start()
This change propagates stop channel to repo catalog and to all repos instantiated by it. The main goal is to make sure the refresh background job refreshing chart repo index is in full control of the main goroutine. Chart repo refreshIndex got a protection mechanism against 0-entries response returned from chart repo. This is a fairly impossible situation which was observed in a real life runtime. The strategy Shipper takes in this case is to return an error if a former index fetch was non-empty. Minor change: chart repo FetchVersions doesn't fetch chart tarballs anymore. This was a loosy strategy which looked like an extra bit of confidence (motivation was like: if we can't fetch a resolved version, there is probably a data corruption so we fall back to the highest resolvable observed version). In reality, it makes the process to be non-deterministic and frankly it shouldn't be there at first. Some chart repo fetch tests became obsolete due to the fact tarballs are no longer downloaded, therefore dropped. Signed-off-by: Oleg Sidorov <[email protected]>
- Loading branch information
Oleg Sidorov
committed
Aug 19, 2019
1 parent
ff75c31
commit 2f3cc10
Showing
5 changed files
with
56 additions
and
65 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
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