Skip to content

Commit

Permalink
addToleration method added for Pod Spec
Browse files Browse the repository at this point in the history
  • Loading branch information
nsutcliffe committed Nov 13, 2023
1 parent 73e806e commit 85d9763
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/src/main/scala/skuber/Pod.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 85d9763

Please sign in to comment.