attempting to call the supporting function correctly
This commit is contained in:
parent
207e8b4d8f
commit
74ff2de531
@ -6,7 +6,7 @@ def podLabel() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// return kubernetes pod defination
|
// return kubernetes pod defination
|
||||||
def podYaml(def requiredContainers){
|
def podYaml(Map requiredContainers){
|
||||||
def dockerRepo = "registry.c.test-chamber-13.lan"
|
def dockerRepo = "registry.c.test-chamber-13.lan"
|
||||||
def output = """
|
def output = """
|
||||||
---
|
---
|
||||||
@ -17,7 +17,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
"""
|
"""
|
||||||
if (requiredContainers['kaniko'] == true) {
|
if (requiredContainers.kaniko] == true) {
|
||||||
output += """
|
output += """
|
||||||
- name: kaniko
|
- name: kaniko
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
@ -27,7 +27,7 @@ spec:
|
|||||||
- /busybox/sh
|
- /busybox/sh
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
if (requiredContainer['alpine'] == true) {
|
if (requiredContainer.alpine == true) {
|
||||||
output += """
|
output += """
|
||||||
- name: alpine
|
- name: alpine
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
|
Reference in New Issue
Block a user