Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
kube-prometheus
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
prometheus-operator
kube-prometheus
Commits
9e892651
Commit
9e892651
authored
3 years ago
by
Abhilash Pallerlamudi
Browse files
Options
Downloads
Patches
Plain Diff
fix sync-to-internal-registry.jsonnet
parent
996d5163
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
jsonnet/kube-prometheus/addons/config-mixins.libsonnet
+4
-0
4 additions, 0 deletions
jsonnet/kube-prometheus/addons/config-mixins.libsonnet
sync-to-internal-registry.jsonnet
+7
-8
7 additions, 8 deletions
sync-to-internal-registry.jsonnet
with
11 additions
and
8 deletions
jsonnet/kube-prometheus/addons/config-mixins.libsonnet
+
4
−
0
View file @
9e892651
...
@@ -31,6 +31,10 @@ local withImageRepository(repository) = {
...
@@ -31,6 +31,10 @@ local withImageRepository(repository) = {
},
},
};
};
{
imageName
::
imageName
,
}
{
{
withImageRepository
::
withImageRepository
,
withImageRepository
::
withImageRepository
,
}
}
This diff is collapsed.
Click to expand it.
sync-to-internal-registry.jsonnet
+
7
−
8
View file @
9e892651
local
kp
=
import
'kube-prometheus/
kube-prometheus
.libsonnet'
;
local
kp
=
import
'kube-prometheus/
main
.libsonnet'
;
local
l
=
import
'kube-prometheus/
lib/lib
.libsonnet'
;
local
l
=
import
'kube-prometheus/
addons/config-mixins
.libsonnet'
;
local
config
=
kp
.
_config
;
local
config
=
kp
.
values
.
common
;
local
makeImages
(
config
)
=
[
local
makeImages
(
config
)
=
[
{
{
name
:
config
.
imageRepos
[
image
],
name
:
config
.
images
[
image
],
tag
:
config
.
versions
[
image
],
}
}
for
image
in
std
.
objectFields
(
config
.
image
Repo
s
)
for
image
in
std
.
objectFields
(
config
.
images
)
];
];
local
upstreamImage
(
image
)
=
'%s
:%s
'
%
[
image
.
name
,
image
.
tag
];
local
upstreamImage
(
image
)
=
'%s'
%
[
image
.
name
];
local
downstreamImage
(
registry
,
image
)
=
'%s/%s
:%s
'
%
[
registry
,
l
.
imageName
(
image
.
name
)
,
image
.
tag
];
local
downstreamImage
(
registry
,
image
)
=
'%s/%s'
%
[
registry
,
l
.
imageName
(
image
.
name
)];
local
pullPush
(
image
,
newRegistry
)
=
[
local
pullPush
(
image
,
newRegistry
)
=
[
'docker pull %s'
%
upstreamImage
(
image
),
'docker pull %s'
%
upstreamImage
(
image
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment