This maven plugin provides a build lifecycle for building and deploying helm charts. It is built on top of Device Insights helm maven plugin.
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 thepom.xml