Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
13504464
Commit
13504464
authored
Apr 04, 2019
by
qingsenLi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix some spelling error
parent
51db0fe2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
manifests.go
cmd/kubeadm/app/phases/controlplane/manifests.go
+2
-2
kubeconfig.go
cmd/kubeadm/app/phases/kubeconfig/kubeconfig.go
+2
-2
cluster.go
cmd/kubeadm/app/util/config/cluster.go
+1
-1
No files found.
cmd/kubeadm/app/phases/controlplane/manifests.go
View file @
13504464
...
@@ -116,10 +116,10 @@ func CreateStaticPodFiles(manifestDir string, cfg *kubeadmapi.ClusterConfigurati
...
@@ -116,10 +116,10 @@ func CreateStaticPodFiles(manifestDir string, cfg *kubeadmapi.ClusterConfigurati
// creates required static pod specs
// creates required static pod specs
for
_
,
componentName
:=
range
componentNames
{
for
_
,
componentName
:=
range
componentNames
{
// retrives the StaticPodSpec for given component
// retri
e
ves the StaticPodSpec for given component
spec
,
exists
:=
specs
[
componentName
]
spec
,
exists
:=
specs
[
componentName
]
if
!
exists
{
if
!
exists
{
return
errors
.
Errorf
(
"couldn't retrive StaticPodSpec for %q"
,
componentName
)
return
errors
.
Errorf
(
"couldn't retri
e
ve StaticPodSpec for %q"
,
componentName
)
}
}
// writes the StaticPodSpec to disk
// writes the StaticPodSpec to disk
...
...
cmd/kubeadm/app/phases/kubeconfig/kubeconfig.go
View file @
13504464
...
@@ -106,10 +106,10 @@ func createKubeConfigFiles(outDir string, cfg *kubeadmapi.InitConfiguration, kub
...
@@ -106,10 +106,10 @@ func createKubeConfigFiles(outDir string, cfg *kubeadmapi.InitConfiguration, kub
}
}
for
_
,
kubeConfigFileName
:=
range
kubeConfigFileNames
{
for
_
,
kubeConfigFileName
:=
range
kubeConfigFileNames
{
// retrives the KubeConfigSpec for given kubeConfigFileName
// retri
e
ves the KubeConfigSpec for given kubeConfigFileName
spec
,
exists
:=
specs
[
kubeConfigFileName
]
spec
,
exists
:=
specs
[
kubeConfigFileName
]
if
!
exists
{
if
!
exists
{
return
errors
.
Errorf
(
"couldn't retrive KubeConfigSpec for %s"
,
kubeConfigFileName
)
return
errors
.
Errorf
(
"couldn't retri
e
ve KubeConfigSpec for %s"
,
kubeConfigFileName
)
}
}
// builds the KubeConfig object
// builds the KubeConfig object
...
...
cmd/kubeadm/app/util/config/cluster.go
View file @
13504464
...
@@ -105,7 +105,7 @@ func getNodeRegistration(kubeconfigDir string, client clientset.Interface, nodeR
...
@@ -105,7 +105,7 @@ func getNodeRegistration(kubeconfigDir string, client clientset.Interface, nodeR
return
errors
.
Wrap
(
err
,
"failed to get node name from kubelet config"
)
return
errors
.
Wrap
(
err
,
"failed to get node name from kubelet config"
)
}
}
// gets the corresponding node and retrives attributes stored there.
// gets the corresponding node and retri
e
ves attributes stored there.
node
,
err
:=
client
.
CoreV1
()
.
Nodes
()
.
Get
(
nodeName
,
metav1
.
GetOptions
{})
node
,
err
:=
client
.
CoreV1
()
.
Nodes
()
.
Get
(
nodeName
,
metav1
.
GetOptions
{})
if
err
!=
nil
{
if
err
!=
nil
{
return
errors
.
Wrap
(
err
,
"failed to get corresponding node"
)
return
errors
.
Wrap
(
err
,
"failed to get corresponding node"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment