From 956f74c3830eab167e433d3630e51a1321c5618c Mon Sep 17 00:00:00 2001 From: Matt Liggett Date: Mon, 22 Aug 2016 17:19:49 -0700 Subject: [PATCH] Fix followups from #31033 --- pkg/apis/policy/types.go | 2 +- pkg/apis/policy/v1alpha1/types.go | 2 +- pkg/registry/pod/etcd/etcd.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/apis/policy/types.go b/pkg/apis/policy/types.go index d7c7e86151c..a79732a5d60 100644 --- a/pkg/apis/policy/types.go +++ b/pkg/apis/policy/types.go @@ -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//evictions. type Eviction struct { unversioned.TypeMeta `json:",inline"` diff --git a/pkg/apis/policy/v1alpha1/types.go b/pkg/apis/policy/v1alpha1/types.go index 21b920cbc95..ced015d3d6e 100644 --- a/pkg/apis/policy/v1alpha1/types.go +++ b/pkg/apis/policy/v1alpha1/types.go @@ -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//evictions. type Eviction struct { unversioned.TypeMeta `json:",inline"` diff --git a/pkg/registry/pod/etcd/etcd.go b/pkg/registry/pod/etcd/etcd.go index 65203a3e19f..dc4fa3e37c1 100644 --- a/pkg/registry/pod/etcd/etcd.go +++ b/pkg/registry/pod/etcd/etcd.go @@ -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