Make OpenAPI GVK and Action extensions all lower-case
This commit is contained in:
@@ -370,15 +370,15 @@ func (o *Resources) getGroupVersionKind(s spec.Schema) (schema.GroupVersionKind,
|
||||
if !ok {
|
||||
return empty, fmt.Errorf("%s extension has unexpected type %T in %s", groupVersionKindExtensionKey, gvk, s.Extensions)
|
||||
}
|
||||
group, ok := gvkMap["Group"].(string)
|
||||
group, ok := gvkMap["group"].(string)
|
||||
if !ok {
|
||||
return empty, fmt.Errorf("%s extension missing Group: %v", groupVersionKindExtensionKey, gvkMap)
|
||||
}
|
||||
version, ok := gvkMap["Version"].(string)
|
||||
version, ok := gvkMap["version"].(string)
|
||||
if !ok {
|
||||
return empty, fmt.Errorf("%s extension missing Version: %v", groupVersionKindExtensionKey, gvkMap)
|
||||
}
|
||||
kind, ok := gvkMap["Kind"].(string)
|
||||
kind, ok := gvkMap["kind"].(string)
|
||||
if !ok {
|
||||
return empty, fmt.Errorf("%s extension missing Kind: %v", groupVersionKindExtensionKey, gvkMap)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user