kokuwaio / helm-maven-plugin

Simple plugin to package helm charts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Helm output is logged as `ERROR` for successful `helm:push` (unsolved helm issue)

koenverwimp opened this issue · comments

AWS ECR now supports pushing helm charts (see https://docs.aws.amazon.com/AmazonECR/latest/userguide/push-oci-artifact.html). I tried to push a helm with the plugin but the "oci://" protocol is not supported.

[ERROR] Failed to execute goal com.kiwigrid:helm-maven-plugin:5.5:upload (default-upload) on project ams-docker: Error uploading /Users/.../....tgz to oci://xxxxxx.dkr.ecr.eu-west-1.amazonaws.com: unknown protocol: oci -> [Help 1]

This was implemented with version 6.1.0 with #120. You are using the old maven coordinates, please use: mvn io.kokuwa.maven:helm-maven-plugin:6.6.1:push

I think i might just not filled in the correct repo type, but i only see these 3 options.
Keeping chartmuseum still gives the same issue. What type should i use for AWS ECR

Failed to execute goal io.kokuwa.maven:helm-maven-plugin:6.6.1:upload (default-upload) on project ams-docker: Upload failed.: unknown protocol: oci -> [Help 1]

public enum RepoType {
CHARTMUSEUM, ARTIFACTORY, NEXUS
}

Sorry to disturb you further about this:

In the link they don't provide the "type" tag but i keep getting issues with this Repository type field.

Failed to execute goal io.kokuwa.maven:helm-maven-plugin:6.6.1:upload (default-upload) on project ams-docker: Execution default-upload of goal io.kokuwa.maven:helm-maven-plugin:6.6.1:upload failed: Repository type missing. Check your plugin configuration. -> [Help 1]

Ah wait, i might be doing helm:upload instead of helm:push.

image

It looks strange ... i get the error but that the maven succeed and the build is green. The helm is even pushed successfully.

Thx, is wasn't aware of this.

Not an issue of this maven plugin, this comes from helm: helm/helm#11533

@koenverwimp @sschnabe a similar issue (successful login message marked as an error) happens also when logging in into an OCI registry