-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Error mirroring git-init image in private registry. Unsupported MIME type for compression #5188
Comments
What registry implementation are you trying to mirror into? (Quay, Harbor, etc) This might help narrow down the issue. Recently we switched the git-init image to be based on distroless.dev/git, which is built with apko. This may be related. We've also switched our base image for everything else to distroless.dev/static so other images may also start exhibiting the same behavior when that's released. |
Could you try mirroring our nightly release images to see if this will be a problem when those changes are in a full release? Apko also switched to producing OCI-typed images by default since that git-init image was released, it's possible that this confluence of events fixes the issue in your registry, but it would be good to be sure. |
I tried with quay and also gitlab registry. I also ran into an error, when i tried to extend this image in a buildah build. |
Same error with gcr.io/tekton-nightly/github.com/tektoncd/pipeline/cmd/git-init:latest |
Same problem here.... I think this is NOT a problem specific to an registry... it looks like apko is not producing oci conform images? However... if you're not able to mirror tekton images in private registries this will be a show stopper for all operating tekton in an disconnected environment e.g. air gapped OpenShift. |
For me it's a little bit like this Kaniko problem with mixed layers..... see Kaniko#1836. When you inspect the actual tekton image you only see oci layers in the json output... but in reality it might be a docker layer.... |
The fix for this is in ko-build/ko#776 -- I expect a Sorry for the disruption, and thanks for reporting this! |
@imjasonh Cool + Respect! |
This ko version fixes ko-build/ko#776 which should resolve tektoncd#5188
This ko version fixes ko-build/ko#776 which should resolve #5188
@imjasonh This issue has persisted in Tekton This will result in the same error as posted above:
|
Ah 😅 this didn't apply to 0.41.1 because I did not cherry-pick #5539 to the release branch (and thus.. it used ko 0.11 I guess). |
This ko version fixes ko-build/ko#776 which should resolve tektoncd#5188
This ko version fixes ko-build/ko#776 which should resolve #5188
Expected Behavior
git-init image can be mirrored from gcr.io to private registry.
Actual Behavior
Mirroring fails with error: unsupported MIME type for compression: application/vnd.docker.image.rootfs.diff.tar.gzip
Steps to Reproduce the Problem
Additional Info
Mirroring worked fine with this image until Release v0.36.0. The error occurs since v0.37.0.
All other tekton release images are working.
Kubernetes version:
**Output of
kubectl version
:Tekton Pipeline version:
Output of
tkn version
orkubectl get pods -n tekton-pipelines -l app=tekton-pipelines-controller -o=jsonpath='{.items[0].metadata.labels.version}'
The text was updated successfully, but these errors were encountered: