Skip to content

Add Notation to TestTransformPodMetadata(t *testing.T) in pkg\ddc\alluxio\transform_test.go. #4929

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
G221220041 opened this issue May 27, 2025 · 0 comments · May be fixed by #4930
Open

Comments

@G221220041
Copy link

Which function do you want to add comments to?

TestTransformPodMetadata(t *testing.T) in pkg\ddc\alluxio\transform_test.go.

What comments do you want to add?

// TestTransformPodMetadata tests the transformation of Pod metadata (labels and annotations)
// for AlluxioRuntime components. It verifies that common metadata specified in the Runtime's
// PodMetadata is correctly applied to Master, Worker, and Fuse components, while ensuring
// component-specific metadata overrides the common settings when present.
//
// Test cases:
// 1. Set common labels and annotations:
// Verifies that labels/annotations from Runtime.Spec.PodMetadata are propagated to
// all components (Master, Worker, Fuse) when no component-specific metadata exists.
//
// 2. Set master and worker labels/annotations:
// Validates that component-specific metadata in Master/Worker PodMetadata takes precedence
// over common metadata, while Fuse uses common metadata when no Fuse-specific settings exist.
//
// The test checks if the transformed Alluxio configuration matches the expected output
// after applying the metadata transformation rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant