From 9438d1c68042e2242d33bf76bf6736f3aa7a9f0d Mon Sep 17 00:00:00 2001 From: Sverre Boschman Date: Fri, 14 Dec 2018 08:56:15 +0100 Subject: [PATCH 1/2] helm lifecycle --- README.md | 28 +++++++++++++++++++ .../resources/META-INF/plexus/components.xml | 23 +++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 src/main/resources/META-INF/plexus/components.xml diff --git a/README.md b/README.md index 6d0becdd..4e385442 100644 --- a/README.md +++ b/README.md @@ -152,3 +152,31 @@ Parameter | Type | User Property | Required | Description ``| [HelmRepository](./src/main/java/com/kiwigrid/helm/maven/plugin/HelmRepository.java) | helm.uploadRepo.stable | true | Upload repository for stable charts ``| [HelmRepository](./src/main/java/com/kiwigrid/helm/maven/plugin/HelmRepository.java) | helm.uploadRepo.snapshot | false | Upload repository for snapshot charts (determined by version postfix 'SNAPSHOT') `` | boolean | helm.init.skipRefresh | false | do not refresh (download) the local repository cache while init + +## Packaging with the helm lifecycle + +To keep your pom files small you can use 'helm' packaging. This binds `helm:init` to the initialize phase, `helm:lint` to the test phase, `helm:package` to the package phase and `helm:upload` to the deploy phase. + +```xml + + my-helm-charts + 0.0.1 + helm + ... + + + + com.kiwigrid + helm-maven-plugin + true + + ... + + + + .... + + +``` + +Please note the `true` which is mandatory when you use a custom lifecycle. diff --git a/src/main/resources/META-INF/plexus/components.xml b/src/main/resources/META-INF/plexus/components.xml new file mode 100644 index 00000000..ad0b2b48 --- /dev/null +++ b/src/main/resources/META-INF/plexus/components.xml @@ -0,0 +1,23 @@ + + + + org.apache.maven.lifecycle.mapping.LifecycleMapping + helm + org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping + + + + + default + + com.kiwigrid:helm-maven-plugin:init + com.kiwigrid:helm-maven-plugin:lint + com.kiwigrid:helm-maven-plugin:package + com.kiwigrid:helm-maven-plugin:upload + + + + + + + From c8fceef710a1e7502d304fb325380197b4970de2 Mon Sep 17 00:00:00 2001 From: Sverre Boschman Date: Mon, 17 Dec 2018 08:04:39 +0100 Subject: [PATCH 2/2] moved comment --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index be43db02..ccb4610b 100644 --- a/README.md +++ b/README.md @@ -169,6 +169,7 @@ To keep your pom files small you can use 'helm' packaging. This binds `helm:init com.kiwigrid helm-maven-plugin + true ... @@ -179,5 +180,3 @@ To keep your pom files small you can use 'helm' packaging. This binds `helm:init ``` - -Please note the `true` which is mandatory when you use a custom lifecycle.