From eb70330b113973c251a856b5192b5764a6653b39 Mon Sep 17 00:00:00 2001 From: Dmitrij Prokov Date: Tue, 18 Feb 2025 18:31:10 +0300 Subject: [PATCH] [DO-316] Add doxygne pod template (!61) Co-authored-by: Denis Patrakeev Reviewed-on: https://git.avroid.tech/DevOps/jenkins-shared-lib/pulls/61 Reviewed-by: Denis Patrakeev Reviewed-by: Rustam Tagaev --- src/tech/avroid/kube/PodTemplates.groovy | 28 ++++++++++++++++++++++++ 1 file changed, 28 insertions(+) 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() + } + } }