mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 18:02:01 +00:00
improve the comments
This commit is contained in:
parent
89aaf7c02d
commit
37f66cb9d8
@ -565,7 +565,7 @@ function kube::build::run_build_command_ex() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function kube::build::rsync_probe {
|
function kube::build::rsync_probe {
|
||||||
# Wait unil rsync is up and running.
|
# Wait until rsync is up and running.
|
||||||
local tries=20
|
local tries=20
|
||||||
while (( tries > 0 )) ; do
|
while (( tries > 0 )) ; do
|
||||||
if rsync "rsync://k8s@${1}:${2}/" \
|
if rsync "rsync://k8s@${1}:${2}/" \
|
||||||
|
@ -47,7 +47,7 @@ func CreateInitStaticPodManifestFiles(manifestDir, patchesDir string, cfg *kubea
|
|||||||
}
|
}
|
||||||
|
|
||||||
// GetStaticPodSpecs returns all staticPodSpecs actualized to the context of the current configuration
|
// 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 {
|
func GetStaticPodSpecs(cfg *kubeadmapi.ClusterConfiguration, endpoint *kubeadmapi.APIEndpoint) map[string]v1.Pod {
|
||||||
// Get the required hostpath mounts
|
// Get the required hostpath mounts
|
||||||
mounts := getHostPathVolumesForTheControlPlane(cfg)
|
mounts := getHostPathVolumesForTheControlPlane(cfg)
|
||||||
|
@ -21,7 +21,7 @@ import "regexp"
|
|||||||
var (
|
var (
|
||||||
// tagMatcher is the regex used to match a tag.
|
// 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]`
|
// 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.
|
// (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
|
// 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).
|
// matches, it's going to be the second returned element (after the full match).
|
||||||
|
Loading…
Reference in New Issue
Block a user