Skip to content

a maven plugin building and deploying helm charts

License

Notifications You must be signed in to change notification settings

eitco/helm-maven-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License Build status Maven Central Version

helm maven plugin

This maven plugin provides a build lifecycle for building and deploying helm charts. It is built on top of Device Insights helm maven plugin.

usage

In order to make the helm build lifecycle available add this plugin to your build activating extensions:

...
<build>
    <plugins>
        <plugin>
            <groupId>de.eitco.cicd.helm</groupId>
            <artifactId>helm-maven-plugin</artifactId>
            <version>4.0.1</version>
            <extensions>true</extensions>
        </plugin>
    </plugins>
</build>

Now you can activate the helm build lifecycle by specifying the packaging helm:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>your.group.id</groupId>
    <artifactId>your-artifact-id</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <packaging>helm</packaging>
...
</project>

One required parameter needs to be set, though - the version of helm to use:

...
<build>
    <plugins>
        <plugin>
            <groupId>de.eitco.cicd.helm</groupId>
            <artifactId>helm-maven-plugin</artifactId>
            <version>4.0.1</version>
            <extensions>true</extensions>
            <configuration>
                <helmVersion>3.15.3</helmVersion>
            </configuration>
        </plugin>
    </plugins>
</build>

Now you can add your files in src/main/helm.

  • a complete reference about the goals and paramters of this plugin can be found here.
  • Refer to the integration test for a simple example.

📘 Note that there is no Chart.yaml file in this example. The plugin will generate this file by itself from values configured in the pom.xml

About

a maven plugin building and deploying helm charts

Resources

License

Stars

Watchers

Forks

Packages

No packages published