From 1359ebcc5b09648f64377492174c0be1a7e35145 Mon Sep 17 00:00:00 2001 From: cui fliter Date: Sun, 16 Apr 2023 18:29:45 +0800 Subject: [PATCH] fix doc mismatch Signed-off-by: cui fliter --- cmd/kube-apiserver/app/server.go | 2 +- cmd/kubeadm/app/phases/upgrade/health.go | 2 +- cmd/kubeadm/app/util/apiclient/clientbacked_dryrun.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/kube-apiserver/app/server.go b/cmd/kube-apiserver/app/server.go index dc1d5273996..bdfe7051fc8 100644 --- a/cmd/kube-apiserver/app/server.go +++ b/cmd/kube-apiserver/app/server.go @@ -339,7 +339,7 @@ func CreateKubeAPIServerConfig(s completedServerRunOptions) ( return config, serviceResolver, pluginInitializers, nil } -// BuildGenericConfig takes the master server options and produces the genericapiserver.Config associated with it +// buildGenericConfig takes the master server options and produces the genericapiserver.Config associated with it func buildGenericConfig( s *options.ServerRunOptions, proxyTransport *http.Transport, diff --git a/cmd/kubeadm/app/phases/upgrade/health.go b/cmd/kubeadm/app/phases/upgrade/health.go index b9e47c1acde..472a2178b58 100644 --- a/cmd/kubeadm/app/phases/upgrade/health.go +++ b/cmd/kubeadm/app/phases/upgrade/health.go @@ -92,7 +92,7 @@ func CheckClusterHealth(client clientset.Interface, cfg *kubeadmapi.ClusterConfi return preflight.RunChecks(healthChecks, os.Stderr, ignoreChecksErrors) } -// CreateJob is a check that verifies that a Job can be created in the cluster +// createJob is a check that verifies that a Job can be created in the cluster func createJob(client clientset.Interface, cfg *kubeadmapi.ClusterConfiguration) (lastError error) { const ( jobName = "upgrade-health-check" diff --git a/cmd/kubeadm/app/util/apiclient/clientbacked_dryrun.go b/cmd/kubeadm/app/util/apiclient/clientbacked_dryrun.go index c80dd33f669..2e4d72378a8 100644 --- a/cmd/kubeadm/app/util/apiclient/clientbacked_dryrun.go +++ b/cmd/kubeadm/app/util/apiclient/clientbacked_dryrun.go @@ -113,7 +113,7 @@ func (clg *ClientBackedDryRunGetter) Client() clientset.Interface { return clg.client } -// decodeUnversionedIntoAPIObject converts the *unversioned.Unversioned object returned from the dynamic client +// decodeUnstructuredIntoAPIObject converts the *unversioned.Unversioned object returned from the dynamic client // to bytes; and then decodes it back _to an external api version (k8s.io/api)_ using the normal API machinery func decodeUnstructuredIntoAPIObject(action core.Action, unstructuredObj runtime.Unstructured) (runtime.Object, error) { objBytes, err := json.Marshal(unstructuredObj)