Merge pull request #18902 from deads2k/gv-partial

Auto commit by PR queue bot
This commit is contained in:
k8s-merge-robot
2015-12-24 01:42:59 -08:00
19 changed files with 707 additions and 154 deletions

View File

@@ -29,6 +29,10 @@ type GroupResource struct {
Resource string
}
func (gr GroupResource) WithVersion(version string) GroupVersionResource {
return GroupVersionResource{Group: gr.Group, Version: version, Resource: gr.Resource}
}
func (gr GroupResource) IsEmpty() bool {
return len(gr.Group) == 0 && len(gr.Resource) == 0
}