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
37f0fce0
Commit
37f0fce0
authored
Sep 21, 2016
by
Matt Liggett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify MinAvailable approval semantics.
Fixes doc comments to be in line with #33143
parent
e72f26a3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
types.go
pkg/apis/policy/types.go
+4
-2
types.go
pkg/apis/policy/v1alpha1/types.go
+4
-2
No files found.
pkg/apis/policy/types.go
View file @
37f0fce0
...
@@ -24,8 +24,10 @@ import (
...
@@ -24,8 +24,10 @@ import (
// PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.
// PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.
type
PodDisruptionBudgetSpec
struct
{
type
PodDisruptionBudgetSpec
struct
{
// The minimum number of pods that must be available simultaneously. This
// An eviction is allowed if at least "minAvailable" pods selected by
// can be either an integer or a string specifying a percentage, e.g. "28%".
// "selector" will still be available after the eviction, i.e. even in the
// absence of the evicted pod. So for example you can prevent all voluntary
// evictions by specifying "100%".
MinAvailable
intstr
.
IntOrString
`json:"minAvailable,omitempty"`
MinAvailable
intstr
.
IntOrString
`json:"minAvailable,omitempty"`
// Label query over pods whose evictions are managed by the disruption
// Label query over pods whose evictions are managed by the disruption
...
...
pkg/apis/policy/v1alpha1/types.go
View file @
37f0fce0
...
@@ -24,8 +24,10 @@ import (
...
@@ -24,8 +24,10 @@ import (
// PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.
// PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.
type
PodDisruptionBudgetSpec
struct
{
type
PodDisruptionBudgetSpec
struct
{
// The minimum number of pods that must be available simultaneously. This
// An eviction is allowed if at least "minAvailable" pods selected by
// can be either an integer or a string specifying a percentage, e.g. "28%".
// "selector" will still be available after the eviction, i.e. even in the
// absence of the evicted pod. So for example you can prevent all voluntary
// evictions by specifying "100%".
MinAvailable
intstr
.
IntOrString
`json:"minAvailable,omitempty" protobuf:"bytes,1,opt,name=minAvailable"`
MinAvailable
intstr
.
IntOrString
`json:"minAvailable,omitempty" protobuf:"bytes,1,opt,name=minAvailable"`
// Label query over pods whose evictions are managed by the disruption
// Label query over pods whose evictions are managed by the disruption
...
...
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