Skip to content

Conversation

@Arvindthiru
Copy link
Contributor

Description of your changes

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

// See https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#label-selector-and-annotation-conventions
fleetPrefix = "placement.karavel.io/"
// Non-prefixed labels/annotations are reserved for end-users
FleetPrefix = "placement.karavel.io/"
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi Arvind! I left a comment about this in another PR, PTAL 🙏

@@ -292,7 +307,7 @@ func (r *Reconciler) syncRole(ctx context.Context, mc *fleetv1alpha1.MemberClust
currentRole.Rules = expectedRole.Rules
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi Arvind! This is actually about line 304, I know it's not a part of PR, and sorry for pointing it out here, but technically speaking we probably shouldn't use cmp outside test code as the package itself recommends.

case createMemberClusterGVK():
klog.V(2).InfoS("handling Member cluster resource", "GVK", createMemberClusterGVK())
response = v.handleMemberCluster(ctx, req)
case createRoleGVK():
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi Arvind! For this one, I am wondering: we are already blocking all requests to Fleet namespaces from non-whitelisted users, i.e., they cannot create anything (incl. roles/rolebindings) in these destinations -> would be this more general rule already cover the cases here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense closing this PR and will open a PR to address roles and role bindings along with all other resources in an other PR

britaniar pushed a commit to britaniar/fleet that referenced this pull request Jan 12, 2026
…zure#396)

* do not register handler for the same GVR

Signed-off-by: Wei Weng <Wei.Weng@microsoft.com>

---------

Signed-off-by: Wei Weng <Wei.Weng@microsoft.com>
Co-authored-by: Wei Weng <Wei.Weng@microsoft.com>
@britaniar britaniar mentioned this pull request Jan 12, 2026
1 task
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