mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
miscellaneous group version updates
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user