Skip to content

Commit

Permalink
fix length (kubeflow#3934)
Browse files Browse the repository at this point in the history
(cherry picked from commit 7fbb7ca)
  • Loading branch information
Jiaxiao Zheng committed Jun 10, 2020
1 parent 7d1de12 commit 8a099dd
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 8a099dd

Please sign in to comment.