converged-computing / oras-csi

ORAS (OCI registry as storage) container storage interface
https://converged-computing.github.io/oras-csi/#/
MIT License
14 stars 3 forks source link

Fix reference parsing to support registry with port #20

Closed sajayantony closed 1 year ago

sajayantony commented 1 year ago

For the driver to work with a registry of the form kind-registry:5000/myartifact:latest the parsing needs to handle portl

time="2023-04-17T23:28:35Z" level=info msg="Preparing to pull from remote repository: kind-registry:5000/github-ci"
time="2023-04-17T23:28:35Z" level=info msg="Plain http: true"
time="2023-04-17T23:28:35Z" level=info msg="Found digest: sha256:5d6742ff0b10c1196202765dafb43275259bcbdbd3868c19ba1d19476c088867 for latest"
time="2023-04-17T23:28:35Z" level=info msg="Pulling sha256:acb1ec674e686f4ba7a0e5c0ce1d41b6c2a5f5f1b9b9baca9c612f794faa3f8e, 0 of 1"
time="2023-04-17T23:28:35Z" level=info msg="OCI: Writing sha256:acb1ec674e686f4ba7a0e5c0ce1d41b6c2a5f5f1b9b9baca9c612f794faa3f8e to /pv_data/default/kind-registry:5000-github-ci-latest/container.sif"
time="2023-04-17T23:28:35Z" level=info msg="Oras artifact root: /pv_data/default/kind-registry:5000-github-ci-latest"
time="2023-04-17T23:28:35Z" level=info msg="Found artifact asset: container.sif"
time="2023-04-17T23:28:35Z" level=info msg="volume source directory:/pv_data/default/kind-registry:5000-github-ci-latest"
time="2023-04-17T23:28:35Z" level=info msg="volume target directory:/var/lib/kubelet/pods/b713b715-f675-410a-a3c0-7ea45b7bfe10/volumes/kubernetes.io~csi/oras-inline/mount"
time="2023-04-17T23:28:35Z" level=info msg="volume options:[ro]"
time="2023-04-17T23:28:35Z" level=info msg="BindMount - source: /pv_data/default/kind-registry:5000-github-ci-latest, target: /var/lib/kubelet/pods/b713b715-f675-410a-a3c0-7ea45b7bfe10/volumes/kubernetes.io~csi/oras-inline/mount, options: [ro]"
time="2023-04-17T23:28:35Z" level=info msg="mount -o bind /pv_data/default/kind-registry:5000-github-ci-latest /var/lib/kubelet/pods/b713b715-f675-410a-a3c0-7ea45b7bfe10/volumes/kubernetes.io~csi/oras-inline/mount"
time="2023-04-17T23:28:35Z" level=info msg="Successfully mounted /pv_data/default/kind-registry:5000-github-ci-latest to /var/lib/kubelet/pods/b713b715-f675-410a-a3c0-7ea45b7bfe10/volumes/kubernetes.io~csi/oras-inline/mount"
time="2023-04-17T23:28:35Z" level=info msg="Mount had no errors"
time="2023-04-17T23:28:35Z" level=info msg="returning NodePublishVolumeResponse"