Created
March 15, 2017 14:38
-
-
Save jayunit100/26db02a8b30f70141acbf7d1b44481f0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Ignore all calls to subresources or resources other than pods. | |
- if len(attributes.GetSubresource()) != 0 || attributes.GetResource().GroupResource() != api.Resource("pods") { | |
+ if len(attributes.GetSubresource()) != 0 || attributes.GetResource().GroupResource() != api.Resource("nodes") { | |
return nil | |
} | |
- pod, ok := attributes.GetObject().(*api.Pod) | |
+ pod, ok := attributes.GetObject().(*api.Node) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment