osd: debug log for long image names in label

Labels cannot be longer than 64 characters, and if the image name
is too long we log a verbose message about the label that we can
just log now as debug level.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
This commit is contained in:
Travis Nielsen
2025-05-21 15:21:30 -06:00
parent 5265defd27
commit 57585ba151
+1 -1
View File
@@ -331,7 +331,7 @@ func createValidImageVersionLabel(image string) string {
cephImageVersion := re.ReplaceAllString(image, "_")
if validation.IsValidLabelValue(cephImageVersion) != nil {
logger.Infof("image %q contains invalid character, skipping adding label", image)
logger.Debugf("image %q contains invalid character, skipping adding label", image)
cephImageVersion = ""
}
return cephImageVersion