Skip to content
Snippets Groups Projects
Unverified Commit ae48746f authored by Paweł Krupa's avatar Paweł Krupa Committed by GitHub
Browse files

Merge pull request #1169 from paulportela/patch-1

Fix adding private repository
parents e481cbd7 f7baf159
No related branches found
No related tags found
No related merge requests found
...@@ -18,13 +18,15 @@ local imageName(image) = ...@@ -18,13 +18,15 @@ local imageName(image) =
// quay.io/coreos/addon-resizer -> $repository/addon-resizer // quay.io/coreos/addon-resizer -> $repository/addon-resizer
// grafana/grafana -> grafana $repository/grafana // grafana/grafana -> grafana $repository/grafana
local withImageRepository(repository) = { local withImageRepository(repository) = {
local oldRepos = super._config.imageRepos, local oldRepos = super.values.common.images,
local substituteRepository(image, repository) = local substituteRepository(image, repository) =
if repository == null then image else repository + '/' + imageName(image), if repository == null then image else repository + '/' + imageName(image),
values+:: { values+:: {
imageRepos:: { common+:: {
[field]: substituteRepository(oldRepos[field], repository) images:: {
for field in std.objectFields(oldRepos) [field]: substituteRepository(oldRepos[field], repository)
for field in std.objectFields(oldRepos)
},
}, },
}, },
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment