This repository has been archived by the owner on Nov 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make chart ops insensitive to (missing) slashes
Before this change it was possible that a user provided correct credentials for a repository, but the operator was unable to find them due to too strict comparisons, also, the URL the operator constructed to download a tarball of a chart was missing a path element when a given repo URL did not end with a trailing slash. To get around the first issue the repo URL from the `repositories.yaml` and the repo URL from the given HelmRelease are both stripped from their trailing slashes during comparison. To get around the second issue a CleanRepoURL function was added and implemented, which returns the RepoURL but ensures it always ends with a trailing slash.
- Loading branch information
Showing
2 changed files
with
21 additions
and
6 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