mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Fix flake in LimitRange e2e
This commit is contained in:
parent
f5082b6dd7
commit
4858b484da
@ -74,6 +74,11 @@ func (l *limitRanger) Admit(a admission.Attributes) (err error) {
|
|||||||
return nil
|
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()
|
obj := a.GetObject()
|
||||||
name := "Unknown"
|
name := "Unknown"
|
||||||
if obj != nil {
|
if obj != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user