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]
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
}
Please see push integration test: https://github.com/kokuwaio/helm-maven-plugin/blob/main/src/it/push-with-auth-from-settings/pom.xml#L34-L37
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.
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