Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions pkg/ddc/alluxio/transform_resources_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,15 @@ func TestTransformResourcesForWorkerWithTieredStore(t *testing.T) {
}
}

// TestTransformResourcesForWorkerWithValue tests the transformResourcesForWorker function.
// It checks if the worker's memory resources (limits and requests) are correctly
// transformed based on the AlluxioRuntime specification, particularly considering
// the memory quota defined in the tiered storage configuration.
// The test includes scenarios where:
// 1. The specified memory limit is less than the memory tier quota, resulting in an error
// and the original resource values being retained.
// 2. The specified memory limit is sufficient, and the memory request is adjusted
// to match the memory tier quota.
func TestTransformResourcesForWorkerWithValue(t *testing.T) {

resources := corev1.ResourceRequirements{}
Expand Down
Loading