core: fix function names in comment

Signed-off-by: clonefetch <c0217@outlook.com>
This commit is contained in:
clonefetch committed 2024-04-16 00:54:42 +08:00
1 parent 8c8844e70d
commit 29ff8d9823
5 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -100,7 +100,7 @@ func GetCleanupResources(p ResourceSpec) v1.ResourceRequirements {
return p[ResourcesKeyCleanup]
}
// GetCleanupResources returns the placement for the cleanup job
// GetCephExporterResources returns the placement for the cleanup job
func GetCephExporterResources(p ResourceSpec) v1.ResourceRequirements {
return p[ResourcesKeyCephExporter]
}
@@ -142,7 +142,7 @@ func (f *sharedInformerFactory) WaitForCacheSync(stopCh <-chan struct{}) map[ref
return res
}
// InternalInformerFor returns the SharedIndexInformer for obj using an internal
// InformerFor returns the SharedIndexInformer for obj using an internal
// client.
func (f *sharedInformerFactory) InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer {
f.lock.Lock()
+1 -1
View File
@@ -81,7 +81,7 @@ type kmipKMS struct {
writeTimeout uint8
}
// InitKKMIP initializes the KMIP KMS.
// InitKMIP initializes the KMIP KMS.
func InitKMIP(config map[string]string) (*kmipKMS, error) {
kms := &kmipKMS{}
+1 -1
View File
@@ -237,7 +237,7 @@ func mockExecCommand(command string, args ...string) *exec.Cmd {
return cmd
}
// TestHelperProcess isn't a real test. It's used as a helper process
// TestCmdReporterHelperProcess isn't a real test. It's used as a helper process
// for TestParameterRun.
// Inspired by: https://github.com/golang/go/blob/master/src/os/exec/exec_test.go
func TestCmdReporterHelperProcess(*testing.T) {
+1 -1
View File
@@ -27,7 +27,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/predicate"
)
// predicateOpController is the predicate function to trigger reconcile on operator configuration cm change
// predicateController is the predicate function to trigger reconcile on operator configuration cm change
func predicateController(ctx context.Context, client client.Client) predicate.Funcs {
return predicate.Funcs{
CreateFunc: func(e event.CreateEvent) bool {