Skip to content

tests(component): restore Related{Kind,Name,Namespace}MetadataKey rename#31

Merged
entlein merged 1 commit intomainfrom
fix/component-test-related-metadata-rename
Apr 27, 2026
Merged

tests(component): restore Related{Kind,Name,Namespace}MetadataKey rename#31
entlein merged 1 commit intomainfrom
fix/component-test-related-metadata-rename

Conversation

@entlein
Copy link
Copy Markdown

@entlein entlein commented Apr 27, 2026

Cherry-pick of 48e52be — the rename was lost during the upstream merge that produced 99b1bf4. All component tests on main currently fail with undefined: helpersv1.KindMetadataKey because tests/component_test.go references the old names while go.mod pulls k8s-interface v0.0.206 which only has the Related* variants.

5 occurrences renamed in tests/component_test.go. go vet -tags=component ./... clean.

🤖 Generated with Claude Code

kubescape/k8s-interface renamed KindMetadataKey → RelatedKindMetadataKey
(and Name / Namespace variants) between v0.0.204 and v0.0.206. Our
Test_28 (UserDefinedNetworkNeighborhood) and Test_30 (TamperedSigned
Profiles) still referenced the old names, so with the v0.0.206 helpers
pulled in by upstream go.mod the full component_test.go failed to
compile. Unit tests pass with -short because they skip these full-
cluster tests.

5 occurrences renamed. No semantic change.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@entlein entlein merged commit 2cd98c3 into main Apr 27, 2026
2 of 3 checks passed
@entlein entlein deleted the fix/component-test-related-metadata-rename branch April 27, 2026 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant