Skip to content

Commit

Permalink
Fix followups from kubernetes#31033
Browse files Browse the repository at this point in the history
  • Loading branch information
mml committed Aug 30, 2016
1 parent 09e3fb3 commit 956f74c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/apis/policy/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ type PodDisruptionBudgetList struct {

// Eviction evicts a pod from its node subject to certain policies and safety constraints.
// This is a subresource of Pod. A request to cause such an eviction is
// created by POSTing to .../pods/foo/evictions.
// created by POSTing to .../pods/<pod name>/evictions.
type Eviction struct {
unversioned.TypeMeta `json:",inline"`

Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/policy/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ type PodDisruptionBudgetList struct {

// Eviction evicts a pod from its node subject to certain policies and safety constraints.
// This is a subresource of Pod. A request to cause such an eviction is
// created by POSTing to .../pods/foo/evictions.
// created by POSTing to .../pods/<pod name>/evictions.
type Eviction struct {
unversioned.TypeMeta `json:",inline"`

Expand Down
2 changes: 1 addition & 1 deletion pkg/registry/pod/etcd/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func (r *EvictionREST) Create(ctx api.Context, obj runtime.Object) (runtime.Obje
// Try to verify-and-decrement

// If it was false already, or if it becomes false during the course of our retries,
// raise an error marked as a ... 429 maybe?
// raise an error marked as a 429.
ok, err := r.checkAndDecrement(ctx, pdb)
if err != nil {
return nil, err
Expand Down

0 comments on commit 956f74c

Please sign in to comment.