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
39c5152e
Commit
39c5152e
authored
Jun 20, 2015
by
markturansky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed pv recycler timeout precision
parent
e5846292
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
host_path.go
pkg/volume/host_path/host_path.go
+1
-2
nfs.go
pkg/volume/nfs/nfs.go
+1
-2
No files found.
pkg/volume/host_path/host_path.go
View file @
39c5152e
...
@@ -18,7 +18,6 @@ package host_path
...
@@ -18,7 +18,6 @@ package host_path
import
(
import
(
"fmt"
"fmt"
"time"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
"github.com/GoogleCloudPlatform/kubernetes/pkg/types"
"github.com/GoogleCloudPlatform/kubernetes/pkg/types"
...
@@ -142,7 +141,7 @@ func (r *hostPathRecycler) GetPath() string {
...
@@ -142,7 +141,7 @@ func (r *hostPathRecycler) GetPath() string {
// Recycle blocks until the pod has completed or any error occurs.
// Recycle blocks until the pod has completed or any error occurs.
// The scrubber pod's is expected to succeed within 30 seconds when testing localhost.
// The scrubber pod's is expected to succeed within 30 seconds when testing localhost.
func
(
r
*
hostPathRecycler
)
Recycle
()
error
{
func
(
r
*
hostPathRecycler
)
Recycle
()
error
{
timeout
:=
int64
(
30
*
time
.
Second
)
timeout
:=
int64
(
30
)
pod
:=
&
api
.
Pod
{
pod
:=
&
api
.
Pod
{
ObjectMeta
:
api
.
ObjectMeta
{
ObjectMeta
:
api
.
ObjectMeta
{
GenerateName
:
"pv-scrubber-"
+
util
.
ShortenString
(
r
.
name
,
44
)
+
"-"
,
GenerateName
:
"pv-scrubber-"
+
util
.
ShortenString
(
r
.
name
,
44
)
+
"-"
,
...
...
pkg/volume/nfs/nfs.go
View file @
39c5152e
...
@@ -19,7 +19,6 @@ package nfs
...
@@ -19,7 +19,6 @@ package nfs
import
(
import
(
"fmt"
"fmt"
"os"
"os"
"time"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
"github.com/GoogleCloudPlatform/kubernetes/pkg/types"
"github.com/GoogleCloudPlatform/kubernetes/pkg/types"
...
@@ -249,7 +248,7 @@ func (r *nfsRecycler) GetPath() string {
...
@@ -249,7 +248,7 @@ func (r *nfsRecycler) GetPath() string {
// Recycle blocks until the pod has completed or any error occurs.
// Recycle blocks until the pod has completed or any error occurs.
// The scrubber pod's is expected to succeed within 5 minutes else an error will be returned
// The scrubber pod's is expected to succeed within 5 minutes else an error will be returned
func
(
r
*
nfsRecycler
)
Recycle
()
error
{
func
(
r
*
nfsRecycler
)
Recycle
()
error
{
timeout
:=
int64
(
300
*
time
.
Second
)
// 5 minutes
timeout
:=
int64
(
300
)
// 5 minutes
pod
:=
&
api
.
Pod
{
pod
:=
&
api
.
Pod
{
ObjectMeta
:
api
.
ObjectMeta
{
ObjectMeta
:
api
.
ObjectMeta
{
GenerateName
:
"pv-scrubber-"
+
util
.
ShortenString
(
r
.
name
,
44
)
+
"-"
,
GenerateName
:
"pv-scrubber-"
+
util
.
ShortenString
(
r
.
name
,
44
)
+
"-"
,
...
...
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