-
Notifications
You must be signed in to change notification settings - Fork 702
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2144 pull secrets in jobs fix (#2156)
* Add 'repo-sync-image-pullsecrets' param in apprepository-controller It accepts a comma separated values list for passing the names of the Secrets to be used when pulling images (i.e., from a private repo) * Add 'repo-sync-image-pullsecrets' argument generation from chart If a values.global.imagePullSecrets is passed, it is also forwarded to the apprepository-controller. Added a helper function to generate the string. * Add if to avoid nil pointer in template Since lazy evaluation is not possible, we should to split up the if sentence * Remove global flag variables. Adapt flag parsing for working in tests * Add unit tests for command line arguments * Param generation without comma separated lst * Change back namespace to kubeappsNamespace. Change flag pck to pflag * Fix wrong namespace utilization config.KubeappsNamespace was wrongly being used in some parts. To avoid confusion, now the whole apprepo is being passed * Minor fixes after PR review
- Loading branch information
Showing
5 changed files
with
547 additions
and
161 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
Oops, something went wrong.