-
Notifications
You must be signed in to change notification settings - Fork 12
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
Invalid JSON Manifest for Helm Charts in ECR #193
Comments
Hi @rpf3, Sorry to hear you're having a problem. I looked at the API specification for the request to
Here are the docs specific to pushing a Helm chart: https://docs.aws.amazon.com/AmazonECR/latest/userguide/push-oci-artifact.html I don't see anything calling out the issues you're encountering. Unfortunately, this looks like a service issue and is not specific to the AWS CLI. I can let the service team know and get back to you on this issue if they respond, but you could also request assistance through AWS support, or post on AWS re:Post and get a faster resolution. In order to pass along details to the ECR team, having complete debug logs for these operations would be helpful. You can add |
Since this is a service issue, I'm going to transfer this issue to |
I've attached the debug log but I think the relevant new line is:
However if I update the put-image request to use the So I guess the question is whether or not the Helm chart should have a {
"schemaVersion": 2,
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"config": {
"mediaType": "application/vnd.docker.container.image.v1+json",
"size": 1234,
"digest": ""
},
"layers": []
} While the response from a Helm chart is: {
"schemaVersion": 2,
"config": {
"mediaType": "application/vnd.cncf.helm.config.v1+json",
"digest": "",
"size": 193
},
"layers": []
} |
Thanks for the debug and the details! I'll review and see if I need to loop in the ECR team. |
P72321100 |
We heard back from a member of the ECR team who said that the value of How did you push the helm chart manifest the very first time? The expectation is that push used the This behavior is already documented here as was previously mentioned:
So based on the above this does not seem to be a service API issue. |
I first am authenticating to with ECR by running Based on your answer, it sounds like this needs to be resolved in the Helm CLI? |
That may be the case - you could try opening an issue with Helm for further feedback. |
@tim-finnigan I've reach out to the Helm team as suggested and they responded that they are following the OCI spec. And reading back on this original thread I keep coming back to my original question of why the response from |
Thanks for following up. For any issue with the BatchGetDocumentation we recommend reaching out through the Provide feedback link on that page. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Confirm by changing [ ] to [x] below to ensure that it's a bug:
Describe the bug
The JSON object returned by
ecr batch-get-image
is missing the top level "mediaType" property when operating on Helm charts. I noticed this by trying to retag both a Helm chart and a Docker image using this AWS guide. When I inspected the manifest JSON, I saw that the Helm chart was missing that property. If I then manually added it with a value matching the "mediaType" in the "config" object I was able to callecr put-image
without issue.SDK version number
Platform/OS/Hardware/Device
To Reproduce (observed behavior)
batch-get-image
to save the manifest.put-image
.Expected behavior
The manifest json should be able to be pushed back to ECR using
ecr put-image
.The text was updated successfully, but these errors were encountered: