buh
This commit is contained in:
parent
52fabd4bb0
commit
fcc5304ce6
1 changed files with 5 additions and 2 deletions
|
@ -14,6 +14,7 @@ def parseYaml(content) {
|
||||||
return new Yaml().load(content)
|
return new Yaml().load(content)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NonCPS
|
||||||
def ocTemplateParametersAsCommandLineOpt(parameters) {
|
def ocTemplateParametersAsCommandLineOpt(parameters) {
|
||||||
parameters.collect { parameter -> "-v ${parameter}" }.join(" ")
|
parameters.collect { parameter -> "-v ${parameter}" }.join(" ")
|
||||||
}
|
}
|
||||||
|
@ -54,9 +55,11 @@ def ocTag(isNamespace, isName, sourceTag, targetTag) {
|
||||||
def ocDeploy(namespace, name, config) {
|
def ocDeploy(namespace, name, config) {
|
||||||
def replicas = getReplicas(namespace, name)
|
def replicas = getReplicas(namespace, name)
|
||||||
|
|
||||||
config.delete.each { target -> ocDelete(namespace, target) }
|
for (def target : config.delete) {
|
||||||
|
ocDelete(namespace, target)
|
||||||
|
}
|
||||||
|
|
||||||
config.templates.each { template ->
|
for (def template : config.templates) {
|
||||||
def manifest = template.manifest
|
def manifest = template.manifest
|
||||||
def parameters = template.parameters.clone()
|
def parameters = template.parameters.clone()
|
||||||
if (replicas) {
|
if (replicas) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue