mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-11 17:33:40 +00:00
fix(cockroach): change resources for crdb (#2049)
* fix(cockroach): change resources for crdb * fix: unit test for resource change
This commit is contained in:
parent
0a6f6b6422
commit
26e4e607bc
@ -307,12 +307,12 @@ func getJoinExec(namespace string, name string, dbPort int, replicaCount int) st
|
||||
func getResources(resourcesSFS *k8s.Resources) corev1.ResourceRequirements {
|
||||
internalResources := corev1.ResourceRequirements{
|
||||
Requests: corev1.ResourceList{
|
||||
"cpu": resource.MustParse("100m"),
|
||||
"memory": resource.MustParse("512Mi"),
|
||||
"cpu": resource.MustParse("1"),
|
||||
"memory": resource.MustParse("6Gi"),
|
||||
},
|
||||
Limits: corev1.ResourceList{
|
||||
"cpu": resource.MustParse("100m"),
|
||||
"memory": resource.MustParse("512Mi"),
|
||||
"cpu": resource.MustParse("4"),
|
||||
"memory": resource.MustParse("8Gi"),
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -49,12 +49,12 @@ func TestStatefulset_JoinExec2(t *testing.T) {
|
||||
func TestStatefulset_Resources0(t *testing.T) {
|
||||
equals := corev1.ResourceRequirements{
|
||||
Requests: corev1.ResourceList{
|
||||
"cpu": resource.MustParse("100m"),
|
||||
"memory": resource.MustParse("512Mi"),
|
||||
"cpu": resource.MustParse("1"),
|
||||
"memory": resource.MustParse("6Gi"),
|
||||
},
|
||||
Limits: corev1.ResourceList{
|
||||
"cpu": resource.MustParse("100m"),
|
||||
"memory": resource.MustParse("512Mi"),
|
||||
"cpu": resource.MustParse("4"),
|
||||
"memory": resource.MustParse("8Gi"),
|
||||
},
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user