mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-10-22 06:59:03 +00:00
use GroupVersion in APIGroupVersion for api installer
This commit is contained in:
@@ -56,6 +56,15 @@ func ParseGroupVersion(gv string) (GroupVersion, error) {
|
||||
}
|
||||
}
|
||||
|
||||
func ParseGroupVersionOrDie(gv string) GroupVersion {
|
||||
ret, err := ParseGroupVersion(gv)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
return ret
|
||||
}
|
||||
|
||||
// MarshalJSON implements the json.Marshaller interface.
|
||||
func (gv GroupVersion) MarshalJSON() ([]byte, error) {
|
||||
s := gv.String()
|
||||
|
Reference in New Issue
Block a user