From 85d9763839007417babe6b8cb95f87fc558da07c Mon Sep 17 00:00:00 2001 From: Nick Sutcliffe Date: Mon, 13 Nov 2023 15:44:08 +0000 Subject: [PATCH] addToleration method added for Pod Spec --- client/src/main/scala/skuber/Pod.scala | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/src/main/scala/skuber/Pod.scala b/client/src/main/scala/skuber/Pod.scala index a0dad104..26e4888b 100644 --- a/client/src/main/scala/skuber/Pod.scala +++ b/client/src/main/scala/skuber/Pod.scala @@ -76,6 +76,10 @@ object Pod { this.copy(imagePullSecrets = loref :: this.imagePullSecrets) } + def addToleration(tol: Toleration): Spec = { + this.copy(tolerations = tol :: tolerations) + } + def withTerminationGracePeriodSeconds(gp: Int): Spec = this.copy(terminationGracePeriodSeconds = Some(gp)) def withActiveDeadlineSeconds(ad: Int): Spec = this.copy(activeDeadlineSeconds = Some(ad))