From 5bf2c6a36790523560842ec3c6109df35f75ef7d Mon Sep 17 00:00:00 2001 From: Anish Shah Date: Wed, 23 Oct 2024 00:24:28 -0700 Subject: [PATCH] fix Go comments Co-authored-by: Sheng Zhan <49895476+AxeZhan@users.noreply.github.com> --- test/e2e/framework/node/helper.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/e2e/framework/node/helper.go b/test/e2e/framework/node/helper.go index 1b51f39f246..76941b61997 100644 --- a/test/e2e/framework/node/helper.go +++ b/test/e2e/framework/node/helper.go @@ -180,7 +180,7 @@ func IsARM64(node *v1.Node) bool { return false } -// patchNode sends a patch request to update k8s Node resource. +// patchNode sends a patch request to update the Node. func patchNode(ctx context.Context, client clientset.Interface, old *v1.Node, new *v1.Node) error { oldData, err := json.Marshal(old) if err != nil { @@ -199,7 +199,7 @@ func patchNode(ctx context.Context, client clientset.Interface, old *v1.Node, ne return err } -// AddExtendedResource adds a fake resource to k8s Node status. +// AddExtendedResource adds a fake resource to the Node. func AddExtendedResource(ctx context.Context, clientSet clientset.Interface, nodeName string, extendedResourceName v1.ResourceName, extendedResourceQuantity resource.Quantity) { extendedResource := v1.ResourceName(extendedResourceName) @@ -229,7 +229,7 @@ func AddExtendedResource(ctx context.Context, clientSet clientset.Interface, nod }).WithTimeout(30 * time.Second).WithPolling(time.Second).ShouldNot(gomega.HaveOccurred()) } -// RemoveExtendedResource removes a fake resource to k8s Node status. +// RemoveExtendedResource removes a fake resource from the Node. func RemoveExtendedResource(ctx context.Context, clientSet clientset.Interface, nodeName string, extendedResourceName v1.ResourceName) { extendedResource := v1.ResourceName(extendedResourceName)