From 845acb242e084962d247dabb85f98af97c9464b7 Mon Sep 17 00:00:00 2001 From: Joseph Salisbury Date: Mon, 8 Mar 2021 14:40:27 +0000 Subject: [PATCH] Updates conversion error message with reasoning --- util/conversion/conversion.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/conversion/conversion.go b/util/conversion/conversion.go index a5ffdaee9055..278a1861ae53 100644 --- a/util/conversion/conversion.go +++ b/util/conversion/conversion.go @@ -76,7 +76,7 @@ func ConvertReferenceAPIContract(ctx context.Context, c client.Client, restConfi // If there is no label, return early without changing the reference. supportedVersions, ok := metadata.Labels[contract] if !ok || supportedVersions == "" { - return errors.Errorf("cannot find any versions matching contract %q for CRD %v", contract, metadata.Name) + return errors.Errorf("cannot find any versions matching contract %q for CRD %v as contract version label(s) are either missing or empty", contract, metadata.Name) } // Pick the latest version in the slice and validate it.