Skip to content

Commit 68320df

Browse files
G221220041root
andauthored
add comments to TestTransformPodMetadata(t *testing.T) in pkg\ddc\alluxio\transform_test.go. (#5045)
Signed-off-by: root <root@xs.localdomain> Co-authored-by: root <root@xs.localdomain>
1 parent 03d3a2b commit 68320df

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

pkg/ddc/alluxio/transform_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,15 @@ func TestTransformShortCircuit(t *testing.T) {
497497
}
498498
}
499499

500+
// TestTransformPodMetadata tests the transformation of Pod metadata (labels and annotations)
501+
// for AlluxioRuntime components. It verifies that common metadata specified in the Runtime's
502+
// PodMetadata is correctly applied to Master, Worker, and Fuse components, while ensuring
503+
// component-specific metadata overrides the common settings when present.
504+
// 1. Verifies that labels/annotations from Runtime.Spec.PodMetadata are propagated to
505+
// all components (Master, Worker, Fuse) when no component-specific metadata exists.
506+
// 2. Set master and worker labels/annotations:
507+
// Validates that component-specific metadata in Master/Worker PodMetadata takes precedence
508+
// over common metadata, while Fuse uses common metadata when no Fuse-specific settings exist.
500509
func TestTransformPodMetadata(t *testing.T) {
501510
engine := &AlluxioEngine{Log: fake.NullLogger()}
502511

0 commit comments

Comments
 (0)