Skip to content

Automatically handling multiple charts in one mvn module #38

@gintautassulskus

Description

@gintautassulskus

I would like to create a maven module called build-service containing the following charts:

  1. artifactory
  2. docker-registry
  3. jenkins

Is there a way to package and install/uninstall all three charts automatically using the maven helm plugin? I got the impression that the plugin expects a specific chart.
If not, would it make sense to introduce such a functionality? E.g. chartContentsUri could accept an array of URIs, ideally with a wildcard support. That would enable cases such as:

  1. Array of paths:
  [ 
    "file:${project.basedir}/src/helm/charts/chart1/",
    "file:${project.basedir}/src/helm/charts/chart2"
  ]
  1. Handling of all charts in a directory:
    file:${project.basedir}/src/helm/charts/*

In some instances helm:install could then potentially fail due to a subset of target charts being already installed to the environment. Similarly, helm:uninstall would fail if one of the charts has not been installed. This could be rectified manually or with some pre-settable behavirous, e.g. continueOnFailure.

At the moment I can package artifactory, docker-registry and jenkins in a single chart, but then the management thereof becomes more difficult.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions