UNCLASSIFIED - NO CUI

Skip to content

Publish url hotfix

Kenneth Maguire requested to merge publish-url-hotfix into development

This MR adds a maxsplit value when parsing urls for cases where the url is a rest api call (e.g. https://repo1.dso.mil/dsop/kubeflow/tektoncd/dashboard-e3e63e/-/jobs/2284280)

Tested locally

label = "org.opencontainers.image.url=https://console.cloud.google.com/gcr/images/tekton-nightly/GLOBAL/dashboard@sha256:41668fefeb6c455966d01d28c27fb0e2e520f7d543c35916761e111788f76bd0/details?tab=info"
key, value = label.split("=", 1)
print((key, value))
('org.opencontainers.image.url', 'https://console.cloud.google.com/gcr/images/tekton-nightly/GLOBAL/dashboard@sha256:41668fefeb6c455966d01d28c27fb0e2e520f7d543c35916761e111788f76bd0/details?tab=info')


key, value = label.split("=")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: too many values to unpack (expected 2)

Merge request reports