forked from rook/rook
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user