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
6c0aa1bd
Commit
6c0aa1bd
authored
Jul 23, 2017
by
zhangxiaoyu-zidif
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix para
parent
5529d01a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
pdb.go
pkg/kubectl/pdb.go
+1
-1
No files found.
pkg/kubectl/pdb.go
View file @
6c0aa1bd
...
@@ -214,7 +214,7 @@ func (s *PodDisruptionBudgetV2Generator) validate() error {
...
@@ -214,7 +214,7 @@ func (s *PodDisruptionBudgetV2Generator) validate() error {
return
fmt
.
Errorf
(
"a selector must be specified"
)
return
fmt
.
Errorf
(
"a selector must be specified"
)
}
}
if
len
(
s
.
MaxUnavailable
)
>
0
&&
len
(
s
.
MinAvailable
)
>
0
{
if
len
(
s
.
MaxUnavailable
)
>
0
&&
len
(
s
.
MinAvailable
)
>
0
{
return
fmt
.
Errorf
(
"
exactly one of min-available and max-available must be
specified"
)
return
fmt
.
Errorf
(
"
min-available and max-unavailable cannot be both
specified"
)
}
}
return
nil
return
nil
}
}
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