Take GVK in SwaggerSchema()
This is needed for the legacy OpenShift API group (oapi) which is also group: "", version: "v1", but needs to return a different swagger schema. Will in the future be replaced by group defaulting.
This commit is contained in:
@@ -98,7 +98,7 @@ func RunExplain(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []st
|
||||
}
|
||||
}
|
||||
|
||||
schema, err := f.SwaggerSchema(apiVersion)
|
||||
schema, err := f.SwaggerSchema(apiVersion.WithKind(gvk.Kind))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user