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
72bd1338
Unverified
Commit
72bd1338
authored
Oct 01, 2018
by
k8s-ci-robot
Committed by
GitHub
Oct 01, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #69288 from bart0sh/PR0028-kubeadm-fix-1142-join-existing-client-certs
kubeadm: fix kubeadm join using existing certs
parents
2a544bc7
b1b719fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
validation.go
cmd/kubeadm/app/apis/kubeadm/validation/validation.go
+5
-1
No files found.
cmd/kubeadm/app/apis/kubeadm/validation/validation.go
View file @
72bd1338
...
@@ -99,9 +99,13 @@ func ValidateDiscovery(c *kubeadm.JoinConfiguration) field.ErrorList {
...
@@ -99,9 +99,13 @@ func ValidateDiscovery(c *kubeadm.JoinConfiguration) field.ErrorList {
}
}
if
len
(
c
.
DiscoveryFile
)
!=
0
{
if
len
(
c
.
DiscoveryFile
)
!=
0
{
allErrs
=
append
(
allErrs
,
ValidateDiscoveryFile
(
c
.
DiscoveryFile
,
field
.
NewPath
(
"discoveryFile"
))
...
)
allErrs
=
append
(
allErrs
,
ValidateDiscoveryFile
(
c
.
DiscoveryFile
,
field
.
NewPath
(
"discoveryFile"
))
...
)
if
len
(
c
.
TLSBootstrapToken
)
!=
0
{
allErrs
=
append
(
allErrs
,
ValidateToken
(
c
.
TLSBootstrapToken
,
field
.
NewPath
(
"tlsBootstrapToken"
))
...
)
}
}
else
{
allErrs
=
append
(
allErrs
,
ValidateToken
(
c
.
TLSBootstrapToken
,
field
.
NewPath
(
"tlsBootstrapToken"
))
...
)
}
}
allErrs
=
append
(
allErrs
,
ValidateArgSelection
(
c
,
field
.
NewPath
(
"discovery"
))
...
)
allErrs
=
append
(
allErrs
,
ValidateArgSelection
(
c
,
field
.
NewPath
(
"discovery"
))
...
)
allErrs
=
append
(
allErrs
,
ValidateToken
(
c
.
TLSBootstrapToken
,
field
.
NewPath
(
"tlsBootstrapToken"
))
...
)
allErrs
=
append
(
allErrs
,
ValidateJoinDiscoveryTokenAPIServer
(
c
.
DiscoveryTokenAPIServers
,
field
.
NewPath
(
"discoveryTokenAPIServers"
))
...
)
allErrs
=
append
(
allErrs
,
ValidateJoinDiscoveryTokenAPIServer
(
c
.
DiscoveryTokenAPIServers
,
field
.
NewPath
(
"discoveryTokenAPIServers"
))
...
)
return
allErrs
return
allErrs
...
...
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