Skip to content

Conversation

@ryanzhang-oss
Copy link
Contributor

Description of your changes

Add the namespaced resource placement API with some rename

Fixes #

I have:

  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

Special notes for your reviewer

@ryanzhang-oss ryanzhang-oss force-pushed the resource-placement-api branch from 86110a9 to 88caf94 Compare May 31, 2025 00:40
@ryanzhang-oss ryanzhang-oss force-pushed the resource-placement-api branch from 88caf94 to 6c54711 Compare May 31, 2025 00:53
@ryanzhang-oss ryanzhang-oss requested a review from Copilot May 31, 2025 00:53
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces the namespaced resource placement API types while renaming several ClusterResourcePlacement-related types to more generic Placement types. Key changes include the renaming of specifications and statuses from ClusterResourcePlacementSpec/Status to PlacementSpec/Status across controllers and tests, updates to CRD YAML files to reflect new labels and naming conventions, and modifications to API types and their deepcopy functions.

Reviewed Changes

Copilot reviewed 56 out of 56 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pkg/controllers/clusterresourceplacementwatcher/watcher_integration_test.go Renames resource spec type to PlacementSpec in test setup.
pkg/controllers/clusterresourceplacementeviction/* Updates spec type to PlacementSpec in multiple test cases.
pkg/controllers/clusterresourceplacement/placement_status_test.go Adjusts status type from ClusterResourcePlacementStatus to PlacementStatus.
pkg/controllers/clusterresourceplacement/* Applies similar renaming in controller tests and integration tests.
config/crd/bases/* Updates CRD definitions to use new labels (e.g. PlacementTrackingLabel) and removes redundant comments.
apis/placement/v1beta1/* Renames API type fields and updates deepcopy functions and comments to reflect the new Placement API, as well as adjusting comments regarding tracking labels.
.github/.copilot/breadcrumbs/* Documentation update that details the implementation and registration of new namespace-scoped types.
Comments suppressed due to low confidence (1)

pkg/controllers/clusterresourceplacementeviction/controller_intergration_test.go:0

  • Consider renaming the file to 'controller_integration_test.go' to correct the spelling of 'integration'.
controller_intergration_test.go

Signed-off-by: Ryan Zhang <[email protected]>
@codecov
Copy link

codecov bot commented May 31, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@ryanzhang-oss ryanzhang-oss merged commit d9e86f2 into kubefleet-dev:main May 31, 2025
18 checks passed
audrastump pushed a commit to audrastump/kubefleet that referenced this pull request Aug 20, 2025
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.

2 participants