Replies: 2 comments 2 replies
-
I think you're looking for lastversion --only chart https://github.com/mtougeron/k8s-aws-ebs-tagger/releases
1.2.2 lastversion --only v https://github.com/mtougeron/k8s-aws-ebs-tagger/releases
0.0.5 However, to find app version (negating "chart" in tags) like in your second example, wasn't possible, so I've added lastversion --only-not chart https://github.com/kubernetes/autoscaler/releases
1.23.0 The Interesting about Artifacthub.io, but how do you see invoking lastversion to get either chart or app version? If Artifacthub.io has an API of sorts "give me Artifachub.io helm chart for this Github repo", then we can make using existing "branch" notation of
|
Beta Was this translation helpful? Give feedback.
-
Alright, I've added the Please see #50, as there's already My current suggestion is to add further logic to it, like the following: Current function# for full URLs with at=helm_chart, will append '/Chart.yml' and use its data
lastversion.latest('https://github.com/bitnami/charts/blob/master/bitnami/apache', at='helm_chart') To be added functionUsing API: # only for full URLs at artifactshub: at=helm_chart is implied based on '/packages/helm/', and we fetch data from that API
lastversion.latest('https://artifacthub.io/packages/helm/cluster-autoscaler/cluster-autoscaler')
# for short URIs of only 2 components (one slash), use artifacthub only when `at=helm_chart` is explicitly given:
lastversion.latest('cluster-autoscaler/cluster-autoscaler', at='helm_chart') Any thoughts? |
Beta Was this translation helpful? Give feedback.
-
Found a mismatch:
If you go to the URL above you can see the latest release is v0.0.5
Also in projects like: https://github.com/kubernetes/autoscaler/releases where there are multiple different types of releases (e.g. there's a helm chart version as well as an app version) would be nice to be able to specify which one you want to get.
Oh and one more suggestion: Artifacthub.io could be added as a repo to check. This could help with the above issue since it has both Application version and Chart version (e.g. https://artifacthub.io/packages/helm/cluster-autoscaler/cluster-autoscaler)
Beta Was this translation helpful? Give feedback.
All reactions