diff --git a/src/tech/avroid/kube/PodTemplates.groovy b/src/tech/avroid/kube/PodTemplates.groovy index 9796b7c..7a67cd5 100644 --- a/src/tech/avroid/kube/PodTemplates.groovy +++ b/src/tech/avroid/kube/PodTemplates.groovy @@ -367,4 +367,32 @@ class PodTemplates implements Serializable { } } + public void doxygen(imageVersion='1.9.8-1', body) { + this.script.podTemplate( + cloud: this.cloud, + imagePullSecrets: this.dockerCreds, + containers: [ + this.script.containerTemplate( + alwaysPullImage: true, + name: 'doxygen', + image: "${this.registry}/devops/doxygen:${imageVersion}", + ttyEnabled: true, + command: "cat", + resourceRequestCpu: '300m', + resourceRequestMemory: '256Mi', + resourceLimitCpu: '300m', + resourceLimitMemory: '256Mi', + ), + ], + showRawYaml: false, + volumes: [ + this.script.emptyDirVolume(memory: false, mountPath: '/tmp'), + ], + workspaceVolume: this.script.emptyDirWorkspaceVolume(false), + ) + + { + body.call() + } + } }