Fix flake in LimitRange e2e

pull/6/head
derekwaynecarr 2016-02-23 16:03:31 -05:00
parent f5082b6dd7
commit 4858b484da
1 changed files with 5 additions and 0 deletions

View File

@ -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 {