attempting to call the supporting function correctly

This commit is contained in:
Hyatt 2022-01-06 11:55:10 -06:00
parent 207e8b4d8f
commit 74ff2de531
Signed by: nhyatt
GPG Key ID: C50D0BBB5BC40BEA

View File

@ -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