Skip to content

Commit

Permalink
Merge pull request kubernetes#21788 from derekwaynecarr/limit_range_f…
Browse files Browse the repository at this point in the history
…lake

Fix flake in LimitRange e2e
  • Loading branch information
a-robinson committed Feb 25, 2016
2 parents 2b13bc4 + 4858b48 commit 054d98f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugin/pkg/admission/limitranger/admission.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ func (l *limitRanger) Admit(a admission.Attributes) (err error) {
return nil
}

// ignore all calls that do not deal with pod resources since that is all this supports now.
if a.GetKind() != api.Kind("Pod") {
return nil
}

obj := a.GetObject()
name := "Unknown"
if obj != nil {
Expand Down

0 comments on commit 054d98f

Please sign in to comment.