@@ -79,23 +79,23 @@ func (r *IpfsClusterReconciler) statefulSet(m *clusterv1alpha1.IpfsCluster,
7979 ipfsStoragei64 , _ := m .Spec .IpfsStorage .AsInt64 ()
8080 ipfsStorageTB := ipfsStoragei64 / 1024 / 1024 / 1024 / 1024
8181 ipfsMilliCoresMin := 4000 + (500 * ipfsStorageTB )
82- ipfsRamGBMin := ipfsStorageTB
83- if ipfsRamGBMin < 2 {
84- ipfsRamGBMin = 2
82+ ipfsRAMGBMin := ipfsStorageTB
83+ if ipfsRAMGBMin < 2 {
84+ ipfsRAMGBMin = 2
8585 }
8686
87- ipfsRamMinQuantity := resource .NewScaledQuantity (ipfsRamGBMin , resource .Giga )
88- ipfsRamMaxQuantity := resource .NewScaledQuantity (2 * ipfsRamGBMin , resource .Giga )
87+ ipfsRAMMinQuantity := resource .NewScaledQuantity (ipfsRAMGBMin , resource .Giga )
88+ ipfsRAMMaxQuantity := resource .NewScaledQuantity (2 * ipfsRAMGBMin , resource .Giga )
8989 ipfsCoresMinQuantity := resource .NewScaledQuantity (ipfsMilliCoresMin , resource .Milli )
9090 ipfsCoresMaxQuantity := resource .NewScaledQuantity (2 * ipfsMilliCoresMin , resource .Milli )
9191
9292 ipfsResources = corev1.ResourceRequirements {
9393 Requests : corev1.ResourceList {
94- corev1 .ResourceMemory : * ipfsRamMinQuantity ,
94+ corev1 .ResourceMemory : * ipfsRAMMinQuantity ,
9595 corev1 .ResourceCPU : * ipfsCoresMinQuantity ,
9696 },
9797 Limits : corev1.ResourceList {
98- corev1 .ResourceMemory : * ipfsRamMaxQuantity ,
98+ corev1 .ResourceMemory : * ipfsRAMMaxQuantity ,
9999 corev1 .ResourceCPU : * ipfsCoresMaxQuantity ,
100100 },
101101 }
0 commit comments