deviceinsight / helm-maven-plugin

Maven Plugin for Helm Charts
Apache License 2.0
46 stars 22 forks source link

Will this plugin work with OCI-compatible registry? #76

Open Vad1mo opened 3 years ago

Vad1mo commented 3 years ago

we are using Harbor and Harbor has two distinct Helm Chart options :

  1. ChartMuseum
  2. OCI Part, supported by Helm3

I am asking, as I see this error here: It seems ChartMuseum is used but I would like to use OCI compatible Error creating/publishing helm chart: Unexpected status code when executing POST request to chart repo https://8gears.container-registry.com/chartrepo/library/api/charts: 404

pvorb commented 3 years ago

I don't know that much about OCI-compatible Helm registries. Probably helm-maven-plugin is not compatible to them, yet.

You could try to configure <chartPublishMethod>PUT</chartPublishMethod>, but that's a wild guess. I couldn't find out how requests to OCI-compatible registries must look like.

Vad1mo commented 3 years ago

I did some debugging and ran the traffic via proxy

I executed the first two requests with helm-push helm push *.tgz examples

The last two with this plugin.

image

It looks like we transmit it differently, Not sure if there are multiple options or if helm push does things differently but it works

d-huynh commented 3 years ago

I also ran into this problem with Azure ACR. I read the code and can confirm it's not compatible.

It's not hard to implement, but the plugin has to trigger helm CLI instead of HTTP request. Besides, OCI support is experimental at the moment.