Amazon ECR (Public Gallery) not able to fetch dependency versions #23839
-
How are you running Renovate?Self-hosted Renovate If you're self-hosting Renovate, tell us what version of Renovate you run.36.40.3 If you're self-hosting Renovate, select which platform you are using.github.com Was this something which used to work for you, and then stopped?I am trying to get this working for the first time Describe the problemYou can find Minimal Reproduction repository here According to this issue, Amazon ECR Public Galery](https://gallery.ecr.aws/?page=1) should be fully supported. Amazon Public galery does not require any credentials or authentication. Example how I can access public gallery with cli $ TOKEN=$(curl -k https://public.ecr.aws/token/ | jq -r '.token')
$ curl -k -H "Authorization: Bearer $TOKEN" https://public.ecr.aws/v2/amazonlinux/amazonlinux/tags/list | jq . | head or skopeo list-tags --no-creds docker://public.ecr.aws/aws-ec2/helm/aws-node-termination-handler However, Renovate is not capable to identify correct updates. For some reason, they appear to be empty. Documentation does not specify how to access In the example repository
But for some reason, version is not updated "helmv3": [
{
"deps": [
{
"depName": "aws-node-termination-handler",
"currentValue": "11.14.4",
"datasource": "docker",
"packageName": "public.ecr.aws/aws-ec2/helm/aws-node-termination-handler",
"updates": ["++++THIS SHOULD HAVE a VERSION 0.22.0++++"],
"versioning": "docker",
"warnings": [],
"registryUrl": "https://public.ecr.aws",
"currentVersion": "11.14.4",
"fixedVersion": "11.14.4"
}
],
"datasource": "helm",
"packageFileVersion": "1.0.0",
"packageFile": "examples/oci-ecr/Chart.yml"
}
] Same for another docker image The result is "helm-values": [
{
"deps": [
{
"depName": "public.ecr.aws/eks-distro/kubernetes-csi/livenessprobe",
"currentValue": "v2.7.0-eks-1-21-16",
"datasource": "docker",
"replaceString": "v2.7.0-eks-1-21-16",
"versioning": "docker",
"autoReplaceStringTemplate": "{{newValue}}{{#if newDigest}}@{{newDigest}}{{/if}}",
"updates": [],
"packageName": "public.ecr.aws/eks-distro/kubernetes-csi/livenessprobe",
"warnings": [],
"registryUrl": "https://public.ecr.aws",
"currentVersion": "v2.7.0",
"fixedVersion": "v2.7.0-eks-1-21-16"
}
],
"packageFile": "examples/values.yaml"
} Looks, like Renovate is not able to identify, that there are never dependency versions
Expected result
I could be overlooking a configuration, but the assumption is that this should function without any additional setup. Relevant debug logsLogs
Have you created a minimal reproduction repository?I have linked to a minimal reproduction in the description above |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
that are two different issues. the fist seems to be a bug and I'm currently working on that to fully support OCI helm charts. the second one needs a special versioning configuration. the default docker versioning will treat everything after the dash as compabillity, so it needs to match with current value suffix. |
Beta Was this translation helpful? Give feedback.
-
Closing this "packageRules": [
{
"matchDatasources": ["docker"],
"matchPackageNames": ["public.ecr.aws/eks-distro/kubernetes-csi/livenessprobe"],
"versioning": "loose"
},
{
"matchDatasources": ["docker"],
"matchPackageNames": ["public.ecr.aws/eks-distro/kubernetes-csi/livenessprobe"],
"versioning": "regex:^v?(?<major>\\d+)\.(?<minor>\\d+)\.(?<patch>\\d+)-eks-\\d+-\\d+-\\d+$"
}
] |
Beta Was this translation helpful? Give feedback.
-
Thanks ill try it too |
Beta Was this translation helpful? Give feedback.
you probably need to use regex versioning and capture the numbers from the suffix as build and release group. checkout the docs for regex versioning