Skip to content

[BUG] Creating MemberCluster successfully, Deleting the membercluster, then recreating it causes no access to resource error #242

@aagusuab

Description

@aagusuab

Describe the bug

Successfully created a Member Cluster CR, and the Member Cluster is joined successfully.
MemberCluster CR was deleted, and recreated with the same value. (Same principal id, client id, etc)
This will cause an error in the reconciliation.

Environment

Please provide the following:

  • Hub cluster details
  • Member cluster details

To Reproduce

Steps to reproduce the behavior:

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

leaderelection/leaderelection.go:330] error retrieving resource lock fleet-member-membercluster1/136224848560.hub.fleet.azure.com: leases.coordination.k8s.io "136224848560.hub.fleet.azure.com" is forbidden: User "f6409f7d-60d2-41df-b070-03c5786432f3" cannot get resource "leases" in API group "coordination.k8s.io" in the namespace "fleet-member-membercluster1": User does not have access to the resource in Azure. Update role assignment to allow access.

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions