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
ce066b67
Commit
ce066b67
authored
Feb 07, 2019
by
Darren Shepherd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cache loopback cert in the certs dir if set
parent
4ab14b4e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
serving_with_loopback.go
....io/apiserver/pkg/server/options/serving_with_loopback.go
+1
-1
No files found.
staging/src/k8s.io/apiserver/pkg/server/options/serving_with_loopback.go
View file @
ce066b67
...
@@ -51,7 +51,7 @@ func (s *SecureServingOptionsWithLoopback) ApplyTo(secureServingInfo **server.Se
...
@@ -51,7 +51,7 @@ func (s *SecureServingOptionsWithLoopback) ApplyTo(secureServingInfo **server.Se
// create self-signed cert+key with the fake server.LoopbackClientServerNameOverride and
// create self-signed cert+key with the fake server.LoopbackClientServerNameOverride and
// let the server return it when the loopback client connects.
// let the server return it when the loopback client connects.
certPem
,
keyPem
,
err
:=
certutil
.
GenerateSelfSignedCertKey
(
server
.
LoopbackClientServerNameOverride
,
nil
,
nil
)
certPem
,
keyPem
,
err
:=
certutil
.
GenerateSelfSignedCertKey
WithFixtures
(
server
.
LoopbackClientServerNameOverride
,
nil
,
nil
,
s
.
SecureServingOptions
.
ServerCert
.
CertDirectory
)
if
err
!=
nil
{
if
err
!=
nil
{
return
fmt
.
Errorf
(
"failed to generate self-signed certificate for loopback connection: %v"
,
err
)
return
fmt
.
Errorf
(
"failed to generate self-signed certificate for loopback connection: %v"
,
err
)
}
}
...
...
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