Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ggcr:Bad request when patching a layer to distribution/registry #2005

Open
warrenhodg opened this issue Aug 30, 2024 · 0 comments
Open

ggcr:Bad request when patching a layer to distribution/registry #2005

warrenhodg opened this issue Aug 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@warrenhodg
Copy link

Describe the bug

When using go-containerregistry to upload helm charts to an OCI registry (distribution/registry), using the vSphere networking, I receive a 400 Bad Request response.

Workarounds that mitigate the problem are:

  • Replacing the compressed layer streaming logic with ioutil.ReadAll into a []byte and performing the HTTP Patch request using that as the body instead
  • Using a local port-forward logic such as sudo ncat --sh-exec "ncat 10.220.54.215 30000" -l 30000 --keep-open

To Reproduce

Using a vSphere network connected to a Kubernetes NodePort exposed service for a pod running distribution/registry running in Kubernetes, and using the library to push a helm chart to the registry.

Expected behavior

The helm chart is uploaded.

Additional context

Add any other context about the problem here.

@warrenhodg warrenhodg added the bug Something isn't working label Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant