mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-11-29 18:27:58 +08:00
perf: adjust the default value of storage creation (#1518)
This commit is contained in:
parent
2226738e69
commit
4e07d741b7
@ -106,8 +106,8 @@ func prepare() {
|
||||
func newVolumeClaim(name, volumePath, accessMode, storageClassName string, capacity int64, labels, annotations map[string]string) *corev1.PersistentVolumeClaim {
|
||||
logrus.Debugf("volume annotaion is %+v", annotations)
|
||||
if capacity == 0 {
|
||||
logrus.Warnf("claim[%s] capacity is 0, set 500G default", name)
|
||||
capacity = 500
|
||||
logrus.Warnf("claim[%s] capacity is 0, set 10G default", name)
|
||||
capacity = 10
|
||||
}
|
||||
resourceStorage, _ := resource.ParseQuantity(fmt.Sprintf("%dGi", capacity)) // 统一单位使用G
|
||||
return &corev1.PersistentVolumeClaim{
|
||||
|
Loading…
Reference in New Issue
Block a user