Merge pull request #3441 from fluxcd/check-crds-version

check: Show the latest stored version of CRDs
pull/3444/head
Stefan Prodan 2 years ago committed by GitHub
commit 8ecaa56461
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save