miscellaneous group version updates

This commit is contained in:
deads2k
2015-12-17 16:20:22 -05:00
parent 837a070d2f
commit d41e7ecf53
17 changed files with 37 additions and 37 deletions

View File

@@ -162,15 +162,6 @@ func ParseGroupVersion(gv string) (GroupVersion, error) {
}
}
func ParseGroupVersionOrDie(gv string) GroupVersion {
ret, err := ParseGroupVersion(gv)
if err != nil {
panic(err)
}
return ret
}
// WithKind creates a GroupVersionKind based on the method receiver's GroupVersion and the passed Kind.
func (gv GroupVersion) WithKind(kind string) GroupVersionKind {
return GroupVersionKind{Group: gv.Group, Version: gv.Version, Kind: kind}