mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-11-03 23:40:03 +00:00 
			
		
		
		
	Fix followups from #31033
This commit is contained in:
		@@ -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"`
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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"`
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user