Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with helm publishing #79

Open
talktolanka opened this issue Dec 22, 2020 · 4 comments
Open

Issue with helm publishing #79

talktolanka opened this issue Dec 22, 2020 · 4 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@talktolanka
Copy link

Hi,

I am having issue when executing mvn helm:deploy and getting following error.

Error creating/publishing helm chart: Unexpected status code when executing POST request to chart repo https://mysitename.io/chartrepo/library: 404 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.deviceinsight.helm:helm-maven-plugin:2.8.0:deploy (default-cli) on project elastic-dijkstra: Error creating/publishing helm chart: Unexpected status code when executing POST request to chart repo https://mysitename.io/chartrepo/library: 404

I also tried the version 2.8.0

Please help on this

@pvorb
Copy link
Member

pvorb commented Dec 22, 2020

Hi, can you please tell me what kind of Helm repository this is? ChartMuseum, Artifactory, ...?

@talktolanka
Copy link
Author

talktolanka commented Dec 22, 2020 via email

@pvorb
Copy link
Member

pvorb commented Dec 23, 2020

I didn't manage to have a look at it today, so this will have to wait until next year.

@pvorb pvorb added bug Something isn't working enhancement New feature or request labels Jan 15, 2021
@catsem
Copy link

catsem commented Jan 21, 2021

I managed to get it working with our helm repo hosted on nexus
Maybe this works for your harbor registry too:

      <groupId>com.deviceinsight.helm</groupId>
      <artifactId>helm-maven-plugin</artifactId>
      <version>2.9.0</version>
      <configuration>
        <chartRepoUsername>${nexus-user}</chartRepoUsername>
        <chartRepoPassword>${nexus-pass}</chartRepoPassword>
        <addIncubatorRepo>false</addIncubatorRepo>
        <chartFolder>src/main/helm</chartFolder>
        <chartDeleteUrl>https://mynexus/nexus/repository/helm-repo/${project.artifactId}-${project.model.version}.tgz</chartDeleteUrl>
        <chartPublishUrl>https://mynexus/nexus/repository/helm-repo/${project.artifactId}-${project.model.version}.tgz</chartPublishUrl>
        <chartPublishMethod>PUT</chartPublishMethod>
        <skipSnapshots>false</skipSnapshots>
        <helmVersion>3.2.0</helmVersion>
        <strictLint>true</strictLint>
      </configuration>
      <executions>
        <execution>
          <goals>
            <goal>package</goal>
            <goal>lint</goal>
            <goal>template</goal>
            <goal>deploy</goal>
          </goals>
        </execution>
      </executions>
    </plugin>``

@marinabauer marinabauer added this to the Bugfix-Release milestone Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants