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
841f8d29
Commit
841f8d29
authored
Apr 08, 2019
by
Darren Shepherd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure CSI is initialized properly when running agent and server combined
parent
3c7e1030
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
server.go
pkg/cli/server/server.go
+4
-0
No files found.
pkg/cli/server/server.go
View file @
841f8d29
...
...
@@ -20,6 +20,7 @@ import (
"github.com/sirupsen/logrus"
"github.com/urfave/cli"
"k8s.io/apimachinery/pkg/util/net"
"k8s.io/kubernetes/pkg/volume"
_
"github.com/mattn/go-sqlite3"
// ensure we have sqlite
)
...
...
@@ -70,6 +71,9 @@ func run(app *cli.Context, cfg *cmds.Server) error {
return
fmt
.
Errorf
(
"must run as root unless --disable-agent is specified"
)
}
// If running agent in server, set this so that CSI initializes properly
volume
.
WaitForValidHost
=
!
cfg
.
DisableAgent
serverConfig
:=
server
.
Config
{}
serverConfig
.
ControlConfig
.
ClusterSecret
=
cfg
.
ClusterSecret
serverConfig
.
ControlConfig
.
DataDir
=
cfg
.
DataDir
...
...
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