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
ab72934a
Commit
ab72934a
authored
Feb 09, 2017
by
xilabao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ca cert in kubeadm
parent
3ce49346
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
reset.go
cmd/kubeadm/app/cmd/reset.go
+0
-2
checks.go
cmd/kubeadm/app/preflight/checks.go
+1
-1
No files found.
cmd/kubeadm/app/cmd/reset.go
View file @
ab72934a
...
@@ -27,7 +27,6 @@ import (
...
@@ -27,7 +27,6 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/cobra"
kubeadmapi
"k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm"
kubeadmapi
"k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm"
kubeadmconstants
"k8s.io/kubernetes/cmd/kubeadm/app/constants"
"k8s.io/kubernetes/cmd/kubeadm/app/phases/kubeconfig"
"k8s.io/kubernetes/cmd/kubeadm/app/phases/kubeconfig"
"k8s.io/kubernetes/cmd/kubeadm/app/preflight"
"k8s.io/kubernetes/cmd/kubeadm/app/preflight"
kubeadmutil
"k8s.io/kubernetes/cmd/kubeadm/app/util"
kubeadmutil
"k8s.io/kubernetes/cmd/kubeadm/app/util"
...
@@ -224,7 +223,6 @@ func resetConfigDir(configPathDir, pkiPathDir string) {
...
@@ -224,7 +223,6 @@ func resetConfigDir(configPathDir, pkiPathDir string) {
filesToClean
:=
[]
string
{
filesToClean
:=
[]
string
{
filepath
.
Join
(
configPathDir
,
kubeconfig
.
AdminKubeConfigFileName
),
filepath
.
Join
(
configPathDir
,
kubeconfig
.
AdminKubeConfigFileName
),
filepath
.
Join
(
configPathDir
,
kubeconfig
.
KubeletKubeConfigFileName
),
filepath
.
Join
(
configPathDir
,
kubeconfig
.
KubeletKubeConfigFileName
),
filepath
.
Join
(
configPathDir
,
kubeadmconstants
.
CACertName
),
}
}
fmt
.
Printf
(
"[reset] Deleting files: %v
\n
"
,
filesToClean
)
fmt
.
Printf
(
"[reset] Deleting files: %v
\n
"
,
filesToClean
)
for
_
,
path
:=
range
filesToClean
{
for
_
,
path
:=
range
filesToClean
{
...
...
cmd/kubeadm/app/preflight/checks.go
View file @
ab72934a
...
@@ -361,7 +361,7 @@ func RunJoinNodeChecks(cfg *kubeadmapi.NodeConfiguration) error {
...
@@ -361,7 +361,7 @@ func RunJoinNodeChecks(cfg *kubeadmapi.NodeConfiguration) error {
PortOpenCheck
{
port
:
10250
},
PortOpenCheck
{
port
:
10250
},
DirAvailableCheck
{
Path
:
filepath
.
Join
(
kubeadmapi
.
GlobalEnvParams
.
KubernetesDir
,
"manifests"
)},
DirAvailableCheck
{
Path
:
filepath
.
Join
(
kubeadmapi
.
GlobalEnvParams
.
KubernetesDir
,
"manifests"
)},
DirAvailableCheck
{
Path
:
"/var/lib/kubelet"
},
DirAvailableCheck
{
Path
:
"/var/lib/kubelet"
},
FileAvailableCheck
{
Path
:
filepath
.
Join
(
kubeadmapi
.
GlobalEnvParams
.
KubernetesDir
,
kubeadmconstants
.
CACertName
)},
FileAvailableCheck
{
Path
:
filepath
.
Join
(
kubeadmapi
.
GlobalEnvParams
.
HostPKIPath
,
kubeadmconstants
.
CACertName
)},
FileAvailableCheck
{
Path
:
filepath
.
Join
(
kubeadmapi
.
GlobalEnvParams
.
KubernetesDir
,
kubeconfig
.
KubeletKubeConfigFileName
)},
FileAvailableCheck
{
Path
:
filepath
.
Join
(
kubeadmapi
.
GlobalEnvParams
.
KubernetesDir
,
kubeconfig
.
KubeletKubeConfigFileName
)},
FileContentCheck
{
Path
:
bridgenf
,
Content
:
[]
byte
{
'1'
}},
FileContentCheck
{
Path
:
bridgenf
,
Content
:
[]
byte
{
'1'
}},
InPathCheck
{
executable
:
"ip"
,
mandatory
:
true
},
InPathCheck
{
executable
:
"ip"
,
mandatory
:
true
},
...
...
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