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
def podYaml(def requiredContainers){
def podYaml(Map requiredContainers){
def dockerRepo = "registry.c.test-chamber-13.lan"
def output = """
---
@ -17,7 +17,7 @@ metadata:
spec:
containers:
"""
if (requiredContainers['kaniko'] == true) {
if (requiredContainers.kaniko] == true) {
output += """
- name: kaniko
imagePullPolicy: Always
@ -27,7 +27,7 @@ spec:
- /busybox/sh
"""
}
if (requiredContainer['alpine'] == true) {
if (requiredContainer.alpine == true) {
output += """
- name: alpine
imagePullPolicy: Always