Class StatefulSetPersistentVolumeClaimRetentionPolicy

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class StatefulSetPersistentVolumeClaimRetentionPolicy
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.
    • Constructor Detail

      • StatefulSetPersistentVolumeClaimRetentionPolicy

        public StatefulSetPersistentVolumeClaimRetentionPolicy​(java.lang.String whenDeleted,
                                                               java.lang.String whenScaled)
      • StatefulSetPersistentVolumeClaimRetentionPolicy

        public StatefulSetPersistentVolumeClaimRetentionPolicy()
    • Method Detail

      • getWhenDeleted

        public java.lang.String getWhenDeleted()
        WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted.
      • getWhenScaled

        public java.lang.String getWhenScaled()
        WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of `Retain` causes PVCs to not be affected by a scaledown. The `Delete` policy causes the associated PVCs for any excess pods above the replica count to be deleted.
      • setWhenDeleted

        public void setWhenDeleted​(java.lang.String whenDeleted)
        WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted.
      • setWhenScaled

        public void setWhenScaled​(java.lang.String whenScaled)
        WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of `Retain` causes PVCs to not be affected by a scaledown. The `Delete` policy causes the associated PVCs for any excess pods above the replica count to be deleted.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object