final case class StatefulSetSpec(serviceName: String, template: PodTemplateSpec, selector: LabelSelector, minReadySeconds: Option[Int] = None, replicas: Option[Int] = None, revisionHistoryLimit: Option[Int] = None, podManagementPolicy: Option[String] = None, volumeClaimTemplates: Option[Seq[PersistentVolumeClaim]] = None, persistentVolumeClaimRetentionPolicy: Option[StatefulSetPersistentVolumeClaimRetentionPolicy] = None, updateStrategy: Option[StatefulSetUpdateStrategy] = None) extends Product with Serializable
A StatefulSetSpec is the specification of a StatefulSet.
- Source
- StatefulSetSpec.scala
- Alphabetic
- By Inheritance
- StatefulSetSpec
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new StatefulSetSpec(serviceName: String, template: PodTemplateSpec, selector: LabelSelector, minReadySeconds: Option[Int] = None, replicas: Option[Int] = None, revisionHistoryLimit: Option[Int] = None, podManagementPolicy: Option[String] = None, volumeClaimTemplates: Option[Seq[PersistentVolumeClaim]] = None, persistentVolumeClaimRetentionPolicy: Option[StatefulSetPersistentVolumeClaimRetentionPolicy] = None, updateStrategy: Option[StatefulSetUpdateStrategy] = None)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addVolumeClaimTemplates(newValues: PersistentVolumeClaim*): StatefulSetSpec
Appends new values to volumeClaimTemplates
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def mapMinReadySeconds(f: (Int) => Int): StatefulSetSpec
if minReadySeconds has a value, transforms to the result of function
- def mapPersistentVolumeClaimRetentionPolicy(f: (StatefulSetPersistentVolumeClaimRetentionPolicy) => StatefulSetPersistentVolumeClaimRetentionPolicy): StatefulSetSpec
if persistentVolumeClaimRetentionPolicy has a value, transforms to the result of function
- def mapPodManagementPolicy(f: (String) => String): StatefulSetSpec
if podManagementPolicy has a value, transforms to the result of function
- def mapReplicas(f: (Int) => Int): StatefulSetSpec
if replicas has a value, transforms to the result of function
- def mapRevisionHistoryLimit(f: (Int) => Int): StatefulSetSpec
if revisionHistoryLimit has a value, transforms to the result of function
- def mapSelector(f: (LabelSelector) => LabelSelector): StatefulSetSpec
transforms selector to result of function
- def mapServiceName(f: (String) => String): StatefulSetSpec
transforms serviceName to result of function
- def mapTemplate(f: (PodTemplateSpec) => PodTemplateSpec): StatefulSetSpec
transforms template to result of function
- def mapUpdateStrategy(f: (StatefulSetUpdateStrategy) => StatefulSetUpdateStrategy): StatefulSetSpec
if updateStrategy has a value, transforms to the result of function
- def mapVolumeClaimTemplates(f: (Seq[PersistentVolumeClaim]) => Seq[PersistentVolumeClaim]): StatefulSetSpec
if volumeClaimTemplates has a value, transforms to the result of function
- val minReadySeconds: Option[Int]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val persistentVolumeClaimRetentionPolicy: Option[StatefulSetPersistentVolumeClaimRetentionPolicy]
- val podManagementPolicy: Option[String]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val replicas: Option[Int]
- val revisionHistoryLimit: Option[Int]
- val selector: LabelSelector
- val serviceName: String
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val template: PodTemplateSpec
- val updateStrategy: Option[StatefulSetUpdateStrategy]
- val volumeClaimTemplates: Option[Seq[PersistentVolumeClaim]]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withMinReadySeconds(value: Int): StatefulSetSpec
Returns a new data with minReadySeconds set to new value
- def withPersistentVolumeClaimRetentionPolicy(value: StatefulSetPersistentVolumeClaimRetentionPolicy): StatefulSetSpec
Returns a new data with persistentVolumeClaimRetentionPolicy set to new value
- def withPodManagementPolicy(value: String): StatefulSetSpec
Returns a new data with podManagementPolicy set to new value
- def withReplicas(value: Int): StatefulSetSpec
Returns a new data with replicas set to new value
- def withRevisionHistoryLimit(value: Int): StatefulSetSpec
Returns a new data with revisionHistoryLimit set to new value
- def withSelector(value: LabelSelector): StatefulSetSpec
Returns a new data with selector set to new value
- def withServiceName(value: String): StatefulSetSpec
Returns a new data with serviceName set to new value
- def withTemplate(value: PodTemplateSpec): StatefulSetSpec
Returns a new data with template set to new value
- def withUpdateStrategy(value: StatefulSetUpdateStrategy): StatefulSetSpec
Returns a new data with updateStrategy set to new value
- def withVolumeClaimTemplates(value: Seq[PersistentVolumeClaim]): StatefulSetSpec
Returns a new data with volumeClaimTemplates set to new value