check: Show the latest stored version of CRDs

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
pull/3441/head
Stefan Prodan 2 years ago
parent f58b82fb4e
commit 9d38ea6ffc
No known key found for this signature in database
GPG Key ID: 3299AEB0E4085BAF

@ -242,8 +242,9 @@ func crdsCheck() bool {
} }
for _, crd := range list.Items { for _, crd := range list.Items {
if len(crd.Status.StoredVersions) > 0 { versions := crd.Status.StoredVersions
logger.Successf(crd.Name + "/" + crd.Status.StoredVersions[0]) if len(versions) > 0 {
logger.Successf(crd.Name + "/" + versions[len(versions)-1])
} else { } else {
ok = false ok = false
logger.Failuref("no stored versions for %s", crd.Name) logger.Failuref("no stored versions for %s", crd.Name)

Loading…
Cancel
Save