Skip to content

Commit

Permalink
default deltaSnapshotMemoryLimit to 100Mi
Browse files Browse the repository at this point in the history
  • Loading branch information
rfranzke committed Apr 2, 2020
1 parent 6383950 commit c5cd8b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/etcd_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ func (r *EtcdReconciler) getMapFromEtcd(etcd *druidv1alpha1.Etcd) (map[string]in
quota = etcd.Spec.Etcd.Quota.Value()
}

var deltaSnapshotMemoryLimit int64 = 0
var deltaSnapshotMemoryLimit int64 = 100 * 1024 * 1024 // 100Mi
if etcd.Spec.Backup.DeltaSnapshotMemoryLimit != nil {
deltaSnapshotMemoryLimit = etcd.Spec.Backup.DeltaSnapshotMemoryLimit.Value()
}
Expand Down

0 comments on commit c5cd8b6

Please sign in to comment.