mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 23:47:50 +00:00
simplify api registration
This commit is contained in:
@@ -241,7 +241,7 @@ func (o *EnvOptions) RunEnv() error {
|
||||
|
||||
if len(o.From) != 0 {
|
||||
b := o.builder().
|
||||
WithScheme(scheme.Scheme, scheme.Registry.RegisteredGroupVersions()...).
|
||||
WithScheme(scheme.Scheme, scheme.Scheme.PrioritizedVersionsAllGroups()...).
|
||||
LocalParam(o.Local).
|
||||
ContinueOnError().
|
||||
NamespaceParam(o.namespace).DefaultNamespace().
|
||||
@@ -305,7 +305,7 @@ func (o *EnvOptions) RunEnv() error {
|
||||
}
|
||||
|
||||
b := o.builder().
|
||||
WithScheme(scheme.Scheme, scheme.Registry.RegisteredGroupVersions()...).
|
||||
WithScheme(scheme.Scheme, scheme.Scheme.PrioritizedVersionsAllGroups()...).
|
||||
LocalParam(o.Local).
|
||||
ContinueOnError().
|
||||
NamespaceParam(o.namespace).DefaultNamespace().
|
||||
|
||||
Reference in New Issue
Block a user