From 52e4e5030870cb7ac1f0fabe3946d0ef09ad2ed6 Mon Sep 17 00:00:00 2001 From: sanaz Date: Wed, 3 Apr 2024 13:05:20 -0700 Subject: [PATCH] exposes resources fields --- test/e2e/defaults.go | 8 ++++---- test/e2e/node.go | 12 ++++++------ test/e2e/txsimNode.go | 6 +++--- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/test/e2e/defaults.go b/test/e2e/defaults.go index 3a15d753b1..41681f12ca 100644 --- a/test/e2e/defaults.go +++ b/test/e2e/defaults.go @@ -1,8 +1,8 @@ package e2e var defaultResources = Resources{ - memoryRequest: "200Mi", - memoryLimit: "200Mi", - cpu: "300m", - volume: "1Gi", + MemoryRequest: "200Mi", + MemoryLimit: "200Mi", + CPU: "300m", + Volume: "1Gi", } diff --git a/test/e2e/node.go b/test/e2e/node.go index 0e7f576dab..a3cdf3d004 100644 --- a/test/e2e/node.go +++ b/test/e2e/node.go @@ -44,10 +44,10 @@ type Node struct { } type Resources struct { - memoryRequest string - memoryLimit string - cpu string - volume string + MemoryRequest string + MemoryLimit string + CPU string + Volume string } func NewNode( @@ -92,11 +92,11 @@ func NewNode( return nil, fmt.Errorf("error setting jaeger exporter: %v", err) } } - err = instance.SetMemory(resources.memoryRequest, resources.memoryLimit) + err = instance.SetMemory(resources.MemoryRequest, resources.MemoryLimit) if err != nil { return nil, err } - err = instance.SetCPU(resources.cpu) + err = instance.SetCPU(resources.CPU) if err != nil { return nil, err } diff --git a/test/e2e/txsimNode.go b/test/e2e/txsimNode.go index 9aff2a591f..6ad5180175 100644 --- a/test/e2e/txsimNode.go +++ b/test/e2e/txsimNode.go @@ -47,15 +47,15 @@ func CreateTxSimNode( Msg("failed to set image for txsim node") return nil, err } - err = instance.SetMemory(resources.memoryRequest, resources.memoryLimit) + err = instance.SetMemory(resources.MemoryRequest, resources.MemoryLimit) if err != nil { return nil, err } - err = instance.SetCPU(resources.cpu) + err = instance.SetCPU(resources.CPU) if err != nil { return nil, err } - err = instance.AddVolumeWithOwner(volumePath, resources.volume, 10001) + err = instance.AddVolumeWithOwner(volumePath, resources.Volume, 10001) if err != nil { return nil, err }