diff --git a/src/tech/avroid/kube/PodTemplates.groovy b/src/tech/avroid/kube/PodTemplates.groovy index 0e46848..ed4f36e 100644 --- a/src/tech/avroid/kube/PodTemplates.groovy +++ b/src/tech/avroid/kube/PodTemplates.groovy @@ -20,13 +20,13 @@ class PodTemplates implements Serializable { """ } - public void jnlp(body) { + public void jnlp(imageVersion='jdk17', body) { this.script.podTemplate( containers: [ this.script.containerTemplate( alwaysPullImage: true, name: 'jnlp', - image: "${this.registry}/docker-hub-proxy/jenkins/inbound-agent:jdk17", + image: "${this.registry}/docker-hub-proxy/jenkins/inbound-agent:${imageVersion}", envVars: [ this.script.containerEnvVar(key: 'HOME', value: '/home/jenkins'), ], @@ -56,14 +56,14 @@ class PodTemplates implements Serializable { } } - public void poetry(body) { + public void poetry(imageVersion='1.8.4', body) { this.script.podTemplate( imagePullSecrets: this.dockerCreds, containers: [ this.script.containerTemplate( alwaysPullImage: true, name: 'poetry', - image: "${this.registry}/devops/poetry:1.8.4", + image: "${this.registry}/devops/poetry:${imageVersion}", envVars: [ this.script.containerEnvVar(key: 'HOME', value: '/home/jenkins'), ], @@ -91,14 +91,14 @@ class PodTemplates implements Serializable { } } - public void docker(body) { + public void docker(imageVersion='27.3.1-dind',body) { this.script.podTemplate( imagePullSecrets: this.dockerCreds, containers: [ this.script.containerTemplate( alwaysPullImage: true, name: 'docker', - image: "${registry}/docker-hub-proxy/docker:27.3.1-dind", + image: "${registry}/docker-hub-proxy/docker:${imageVersion}", envVars: [ this.script.containerEnvVar(key: 'HOME', value: '/home/jenkins'), ],