15 lines
427 B
Text
15 lines
427 B
Text
|
local appr = import "appr.libsonnet";
|
||
|
function(variables={})
|
||
|
{
|
||
|
local docker_login = [variables.docker_user, variables.docker_pass],
|
||
|
data: {
|
||
|
".dockercfg": appr.b64encode('{"quay.io": {"username": "%s", "password": "%s","email":"toto@toto.com","auth": "%s"}}' % (docker_login + [appr.b64encode("%s:%s" % docker_login)])),
|
||
|
},
|
||
|
kind: "Secret",
|
||
|
metadata: {
|
||
|
name: "coreos-pull-secret",
|
||
|
},
|
||
|
|
||
|
type: "kubernetes.io/dockercfg"
|
||
|
}
|