mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-10-26 05:31:21 +01:00
Fix adding private repository
`imageRepos` field was removed and the project no longer tries to compose image strings. Now the libraries use `$.values.common.images` to override default images.
This commit is contained in:
parent
e481cbd7c5
commit
f7baf1599d
@ -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)
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user