Skip to content
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

update pod status from leaf to root #730

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gao12312
Copy link
Contributor

What type of PR is this?

/kind feature

What does this PR do?

update pod status from leaf to root

Which issue(s) does this PR fix?

Fixes #705

Special notes for your reviewer:

Does this PR introduce a user-facing change?


@gao12312 gao12312 force-pushed the develop branch 3 times, most recently from 0fe26e3 to 7de5842 Compare September 29, 2024 12:04
// }
// })
// return reconcile.Result{}, nil
// }
func (r *LeafPodReconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Delete the annotated code above

@@ -60,6 +60,7 @@ type ClusterController struct {
ControllerManagers map[string]manager.Manager
ManagerCancelFuncs map[string]*context.CancelFunc
ControllerManagersLock sync.Mutex
SharedPodLock sync.Mutex

Copy link
Contributor

Choose a reason for hiding this comment

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

This lock has some issues.

@@ -307,6 +310,7 @@ func (c *ClusterController) setupControllers(
leafPodController := podcontrollers.LeafPodReconciler{
RootClient: c.Root,
Namespace: "",
PodLock: &SharedPodLock,
}
Copy link
Contributor

@duanmengkk duanmengkk Oct 10, 2024

Choose a reason for hiding this comment

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

The usage of the shared lock is incorrect.

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.

update pod status from leaf to root
3 participants