Skip to content

Commit

Permalink
Fix latest version for genolm
Browse files Browse the repository at this point in the history
Signed-off-by: John Starich <johnstarich@johnstarich.com>
JohnStarich committed Mar 17, 2022
1 parent 6ecd63f commit cca9f79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cmd/genolm/crd.go
Original file line number Diff line number Diff line change
@@ -92,7 +92,7 @@ func NewCRD(src apiextensionsv1.CustomResourceDefinition, ownedResources []TypeM
panic(fmt.Sprintf("Versions section is empty: %#v", src.Spec))
}

latestVersion := src.Spec.Versions[len(src.Spec.Versions)-1]
latestVersion := src.Spec.Versions[0]
return CRD{
DisplayName: src.Spec.Names.Kind,
Description: latestVersion.Schema.OpenAPIV3Schema.Description,

0 comments on commit cca9f79

Please sign in to comment.