Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Local Path Provisioner
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Local Path Provisioner
Commits
ffd5ad91
Commit
ffd5ad91
authored
Dec 16, 2021
by
Sung-Kyu Yoo
Committed by
Derek Su
Dec 22, 2021
Browse files
Options
Downloads
Patches
Plain Diff
Added an option for provisioner worker threads.
parent
4f01290f
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
main.go
+8
-0
8 additions, 0 deletions
main.go
with
8 additions
and
0 deletions
main.go
+
8
−
0
View file @
ffd5ad91
...
...
@@ -39,6 +39,8 @@ var (
FlagConfigMapName
=
"configmap-name"
FlagHelperPodFile
=
"helper-pod-file"
DefaultHelperPodFile
=
"helperPod.yaml"
FlagWorkerThreads
=
"worker-threads"
DefaultWorkerThreads
=
4
)
func
cmdNotFound
(
c
*
cli
.
Context
,
command
string
)
{
...
...
@@ -107,6 +109,11 @@ func StartCmd() cli.Command {
Usage
:
"Paths to the Helper pod yaml file"
,
Value
:
""
,
},
cli
.
IntFlag
{
Name
:
FlagWorkerThreads
,
Usage
:
"Number of provisioner worker threads."
,
Value
:
DefaultWorkerThreads
,
},
},
Action
:
func
(
c
*
cli
.
Context
)
{
if
err
:=
startDaemon
(
c
);
err
!=
nil
{
...
...
@@ -232,6 +239,7 @@ func startDaemon(c *cli.Context) error {
provisioner
,
serverVersion
.
GitVersion
,
pvController
.
LeaderElection
(
false
),
pvController
.
Threadiness
(
c
.
Int
(
FlagWorkerThreads
)),
)
logrus
.
Debug
(
"Provisioner started"
)
pc
.
Run
(
stopCh
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment