Skip to content

Commit

Permalink
Merge pull request #343 from nsutcliffe/master
Browse files Browse the repository at this point in the history
addToleration method added for Pod Spec
  • Loading branch information
hagay3 authored Nov 13, 2023
2 parents 73e806e + 85d9763 commit 11ba932
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 11ba932

Please sign in to comment.