From 5fbef414cb3db333ca2ada6cc03388ef753b5396 Mon Sep 17 00:00:00 2001 From: cuiyourong Date: Sat, 7 Dec 2024 00:45:04 +0800 Subject: [PATCH] chore: fix some function names in comment Signed-off-by: cuiyourong --- pkg/addons/addons.go | 2 +- pkg/minikube/logs/logs.go | 4 ++-- test/integration/main_test.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/addons/addons.go b/pkg/addons/addons.go index 4029555bd7ed..296059719af2 100644 --- a/pkg/addons/addons.go +++ b/pkg/addons/addons.go @@ -579,7 +579,7 @@ func ToEnable(cc *config.ClusterConfig, existing map[string]bool, additional []s return enable } -// UpdateConfig tries to update config with all enabled addons (not thread-safe). +// UpdateConfigToEnable tries to update config with all enabled addons (not thread-safe). // Any error will be logged and it will continue. func UpdateConfigToEnable(cc *config.ClusterConfig, enabled []string) { for _, a := range enabled { diff --git a/pkg/minikube/logs/logs.go b/pkg/minikube/logs/logs.go index c54ce8da6767..f9cc5dd7ed73 100644 --- a/pkg/minikube/logs/logs.go +++ b/pkg/minikube/logs/logs.go @@ -206,7 +206,7 @@ func Output(r cruntime.Manager, bs bootstrapper.Bootstrapper, cfg config.Cluster } } -// outputAudit displays the audit logs. +// OutputAudit displays the audit logs. func OutputAudit(lines int) error { out.Styled(style.None, "") out.Styled(style.None, "==> Audit <==") @@ -218,7 +218,7 @@ func OutputAudit(lines int) error { return nil } -// outputLastStart outputs the last start logs. +// OutputLastStart outputs the last start logs. func OutputLastStart() error { out.Styled(style.None, "") out.Styled(style.None, "==> Last Start <==") diff --git a/test/integration/main_test.go b/test/integration/main_test.go index 895d15fefa46..764a210a894f 100644 --- a/test/integration/main_test.go +++ b/test/integration/main_test.go @@ -149,7 +149,7 @@ func PodmanDriver() bool { return strings.Contains(*startArgs, "--driver=podman") || strings.Contains(*startArgs, "--vm-driver=podman") } -// Rootless returns whether or not this test is using the rootless KIC driver +// RootlessDriver returns whether or not this test is using the rootless KIC driver func RootlessDriver() bool { return strings.Contains(*startArgs, "--rootless") }