*: Generate latest Documentation and manifest for Prom v2.5.0

This commit is contained in:
Matthias Loibl
2018-11-07 16:20:23 +01:00
parent 174e84f3e5
commit 2ffb7cffea
5 changed files with 33 additions and 34 deletions

View File

@@ -3,20 +3,20 @@ local l = import 'kube-prometheus/lib/lib.libsonnet';
local config = kp._config;
local makeImages(config) = [
{
name: config.imageRepos[image],
tag: config.versions[image],
}
for image in std.objectFields(config.imageRepos)
{
name: config.imageRepos[image],
tag: config.versions[image],
}
for image in std.objectFields(config.imageRepos)
];
local upstreamImage(image) = '%s:%s' % [image.name, image.tag];
local downstreamImage(registry, image) = '%s/%s:%s' % [registry, l.imageName(image.name), image.tag];
local pullPush(image, newRegistry) = [
'docker pull %s' % upstreamImage(image),
'docker tag %s %s' % [upstreamImage(image), downstreamImage(newRegistry, image)],
'docker push %s' % downstreamImage(newRegistry, image),
'docker pull %s' % upstreamImage(image),
'docker tag %s %s' % [upstreamImage(image), downstreamImage(newRegistry, image)],
'docker push %s' % downstreamImage(newRegistry, image),
];
local images = makeImages(config);
@@ -26,5 +26,5 @@ local output(repository) = std.flattenArrays([
for image in images
]);
function(repository="my-registry.com/repository")
std.join('\n', output(repository))
function(repository='my-registry.com/repository')
std.join('\n', output(repository))