From 74ff2de531cc3669edab36d9d4630a021bd4337c Mon Sep 17 00:00:00 2001 From: The_Spider Date: Thu, 6 Jan 2022 11:55:10 -0600 Subject: [PATCH] attempting to call the supporting function correctly --- vars/podTemplates.groovy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vars/podTemplates.groovy b/vars/podTemplates.groovy index fe453e4..4e15c57 100644 --- a/vars/podTemplates.groovy +++ b/vars/podTemplates.groovy @@ -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