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
aef85157
Unverified
Commit
aef85157
authored
3 years ago
by
Paweł Krupa
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #1347 from stpabhi/fix-sync-to-internal-registry
fix sync-to-internal-registry.jsonnet
parents
86ce42aa
9e892651
No related branches found
Branches containing commit
No related tags found
Tags containing commit
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 @
aef85157
...
@@ -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 @
aef85157
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