Class StatefulSetPersistentVolumeClaimRetentionPolicy

    • Constructor Detail

      • StatefulSetPersistentVolumeClaimRetentionPolicy

        public StatefulSetPersistentVolumeClaimRetentionPolicy()
        No args constructor for use in serialization
      • StatefulSetPersistentVolumeClaimRetentionPolicy

        public StatefulSetPersistentVolumeClaimRetentionPolicy​(String whenDeleted,
                                                               String whenScaled)
    • Method Detail

      • getWhenDeleted

        public 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.
      • setWhenDeleted

        public void setWhenDeleted​(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.
      • getWhenScaled

        public 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.
      • setWhenScaled

        public void setWhenScaled​(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.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)