From 09ad86aeb89b65216fb6515df46ca609f44315e6 Mon Sep 17 00:00:00 2001 From: guoyx87 <18503470247@163.com> Date: Mon, 15 Jul 2024 17:26:51 +0800 Subject: [PATCH] update pkg/informer/apiserverinformer.go to fix NewAPIServerInformer func annotation errors --- pkg/informer/apiserverinformer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/informer/apiserverinformer.go b/pkg/informer/apiserverinformer.go index d145b77..bc0c1a1 100644 --- a/pkg/informer/apiserverinformer.go +++ b/pkg/informer/apiserverinformer.go @@ -40,7 +40,7 @@ type APIServerInformer struct { nodeName string } -// NewAPIServerInformer creates an PIServerInformer instance +// NewAPIServerInformer creates an APIServerInformer instance func NewAPIServerInformer(publisher api.Publisher) (api.Informer, error) { informer := &APIServerInformer{ Publisher: publisher, @@ -78,7 +78,7 @@ func InitKubeClient() (*kubernetes.Clientset, error) { return kubeClient, nil } -// Start starts and enables PIServerInformer +// Start starts and enables APIServerInformer func (informer *APIServerInformer) Start(ctx context.Context) { const specNodeNameField = "spec.nodeName" // set options to return only pods on the current node. -- Gitee