fix length (#3934)

This commit is contained in:
Jiaxiao Zheng 2020-06-09 14:00:06 -07:00 committed by GitHub
parent 40372e5c86
commit 7fbb7cae56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -111,8 +111,9 @@ def add_name_for_oob_components() -> Callable:
origin_path_label = origin_path[-63:].strip('-_.')
task.add_pod_label(COMPONENT_PATH_LABEL_KEY, origin_path_label)
if component_ref.digest:
# We can only preserve the first 63 digits of the digest.
task.add_pod_label(
COMPONENT_DIGEST_LABEL_KEY, component_ref.digest)
COMPONENT_DIGEST_LABEL_KEY, component_ref.digest[:63])
return task