improve the comments

This commit is contained in:
runzhliu 2022-07-04 16:47:26 +08:00 committed by runzhliu
parent 89aaf7c02d
commit 37f66cb9d8
3 changed files with 3 additions and 3 deletions

View File

@ -565,7 +565,7 @@ function kube::build::run_build_command_ex() {
}
function kube::build::rsync_probe {
# Wait unil rsync is up and running.
# Wait until rsync is up and running.
local tries=20
while (( tries > 0 )) ; do
if rsync "rsync://k8s@${1}:${2}/" \

View File

@ -47,7 +47,7 @@ func CreateInitStaticPodManifestFiles(manifestDir, patchesDir string, cfg *kubea
}
// GetStaticPodSpecs returns all staticPodSpecs actualized to the context of the current configuration
// NB. this methods holds the information about how kubeadm creates static pod manifests.
// NB. this method holds the information about how kubeadm creates static pod manifests.
func GetStaticPodSpecs(cfg *kubeadmapi.ClusterConfiguration, endpoint *kubeadmapi.APIEndpoint) map[string]v1.Pod {
// Get the required hostpath mounts
mounts := getHostPathVolumesForTheControlPlane(cfg)

View File

@ -21,7 +21,7 @@ import "regexp"
var (
// tagMatcher is the regex used to match a tag.
// Basically we presume an image can be made of `[domain][:port][path]<name>[:tag][@sha256:digest]`
// We are obvously interested only in the tag, but for the purpose of properly matching it, we also match the digest
// We are obviously interested only in the tag, but for the purpose of properly matching it, we also match the digest
// (if present). All the parts before the tag we match in a single match everything (but not greedy) group.
// All matched sub-groups, except the tag one, get thrown away. Hence, in a result of FindStringSubmatch, if a tag
// matches, it's going to be the second returned element (after the full match).