Skip to content

Commit

Permalink
Update the instruction
Browse files Browse the repository at this point in the history
Signed-off-by: clyang82 <[email protected]>
  • Loading branch information
clyang82 committed Jan 14, 2025
1 parent aa4523f commit 6eb76f7
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion test/integration/operator/controllers/transporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/reconcile"

"github.com/stolostron/multicluster-global-hub/operator/api/operator/shared"
"github.com/stolostron/multicluster-global-hub/operator/api/operator/v1alpha4"
"github.com/stolostron/multicluster-global-hub/operator/pkg/config"
operatortrans "github.com/stolostron/multicluster-global-hub/operator/pkg/controllers/transporter"
Expand Down Expand Up @@ -247,7 +248,23 @@ var _ = Describe("transporter", Ordered, func() {
customMemoryRequest := "1Mi"
mgh.Spec.AdvancedSpec = &v1alpha4.AdvancedSpec{
Kafka: &v1alpha4.CommonSpec{
Resources: &v1alpha4.ResourceRequirements{
Resources: &shared.ResourceRequirements{
Limits: corev1.ResourceList{
corev1.ResourceName(corev1.ResourceCPU): resource.MustParse(customCPULimit),
corev1.ResourceName(corev1.ResourceMemory): resource.MustParse(customMemoryLimit),
},
Requests: corev1.ResourceList{
corev1.ResourceName(corev1.ResourceMemory): resource.MustParse(customMemoryRequest),
corev1.ResourceName(corev1.ResourceCPU): resource.MustParse(customCPURequest),
},
},
},
Zookeeper: &v1alpha4.CommonSpec{
Resources: &shared.ResourceRequirements{
Limits: corev1.ResourceList{
corev1.ResourceName(corev1.ResourceCPU): resource.MustParse(customCPULimit),
corev1.ResourceName(corev1.ResourceMemory): resource.MustParse(customMemoryLimit),
},
Requests: corev1.ResourceList{
corev1.ResourceName(corev1.ResourceMemory): resource.MustParse(customMemoryRequest),
corev1.ResourceName(corev1.ResourceCPU): resource.MustParse(customCPURequest),
Expand Down

0 comments on commit 6eb76f7

Please sign in to comment.