Skip to content

Commit

Permalink
fix length (#3934)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiaxiao Zheng authored Jun 9, 2020
1 parent 40372e5 commit 7fbb7ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sdk/python/kfp/compiler/_default_transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,9 @@ def _add_name_for_oob_components(task):
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

Expand Down

0 comments on commit 7fbb7ca

Please sign in to comment.