Skip to content

Commit b8e3d6c

Browse files
author
Cory Schwartz
committed
lint
1 parent 832b97d commit b8e3d6c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

controllers/statefulset.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)