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

fix typo #1519

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/controller/yurtstaticset/yurtstaticset_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func add(mgr manager.Manager, r reconcile.Reconciler) error {
}

// 4. Watch for changes of static pods
reconcileYurtStatisSetForStaticPod := func(obj client.Object) []reconcile.Request {
reconcileYurtStaticSetForStaticPod := func(obj client.Object) []reconcile.Request {
var reqs []reconcile.Request
pod, ok := obj.(*corev1.Pod)
if !ok {
Expand All @@ -237,7 +237,7 @@ func add(mgr manager.Manager, r reconcile.Reconciler) error {
}
if err := c.Watch(&source.Kind{Type: &corev1.Pod{}}, handler.EnqueueRequestsFromMapFunc(
func(obj client.Object) []reconcile.Request {
return reconcileYurtStatisSetForStaticPod(obj)
return reconcileYurtStaticSetForStaticPod(obj)
})); err != nil {
return err
}
Expand Down