Skip to content

Commit

Permalink
doc(helm): documentation for Helm Install feature
Browse files Browse the repository at this point in the history
Signed-off-by: Rohan Kumar <[email protected]>
  • Loading branch information
rohanKanojia authored Jul 17, 2024
1 parent c6cef34 commit d8db3e6
Show file tree
Hide file tree
Showing 8 changed files with 91 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Usage:
* Fix #2463: Buildpacks should clear build cache when `nocache` option is enabled
* Fix #2470: Add configuration option for overriding buildpack builder image
* Fix #2662: Sanitize VCS remote URL used in `jkube.eclipse.org/git-url` annotation
* Fix #2663: Add new helm install goal task (`k8s:helm-install` for maven and `k8sHelmInstall` for gradle)
* Fix #2665: Added support for explicit path for readiness and liveness probes in SpringBootHealthCheckEnricher
* Fix #2860: Correctly pass Docker build-arg from the build configuration to the Openshift build strategy
* Fix #2885: Provide a way to set labels on images defined by Generators
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ include::{kitdoc-path}/inc/helm/_jkube_helm_push.adoc[]
include::{kitdoc-path}/inc/helm/_jkube_helm_lint.adoc[]

include::{kitdoc-path}/inc/helm/_jkube_helm_dependency_update.adoc[]

include::{kitdoc-path}/inc/helm/_jkube_helm_install.adoc[]
45 changes: 45 additions & 0 deletions jkube-kit/doc/src/main/asciidoc/inc/helm/_jkube_helm_install.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
ifeval::["{plugin-type}" == "maven"]
[[jkube:helm-install]]
== *{goal-prefix}:helm-install*
endif::[]
ifeval::["{plugin-type}" == "gradle"]
[[jkubeHelmInstall]]
=== *{task-prefix}HelmInstall*
endif::[]

This feature allows you to install your Eclipse JKube-generated
https://helm.sh/docs/topics/charts[Helm charts]

ifeval::["{plugin-type}" == "maven"]
include::maven/_mvn_helm_install.adoc[]
endif::[]
ifeval::["{plugin-type}" == "gradle"]
include::gradle/_gradle_helm_install.adoc[]
endif::[]

.Helm Install configuration
[cols="1,5,1"]
|===
| Element | Description | Property

| *releaseName*
| Name of Helm Release (instance of a chart running in a Kubernetes cluster).
| `jkube.helm.release.name`

| *installDependencyUpdate*
| update dependencies if they are missing before installing the chart
| `jkube.helm.install.dependencyUpdate`

| *installWaitReady*
| if set, will wait until all Pods, PVCs, Services, and minimum number of Pods of a Deployment, StatefulSet, or ReplicaSet are in a ready state before marking the release as successful.
| `jkube.helm.install.waitReady`

|===

.Example Helm Install configuration
ifeval::["{plugin-type}" == "maven"]
include::maven/_example_helm_install_config.adoc[]
endif::[]
ifeval::["{plugin-type}" == "gradle"]
include::gradle/_example_helm_install_config.adoc[]
endif::[]
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[source,groovy,indent=0,subs="verbatim,quotes,attributes"]
----
kubernetes {
helm {
releaseName = "test-release"
installWaitReady = false
installDependencyUpdate = false
}
}
----
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
To install Helm chart you need to invoke the `{task-prefix}HelmInstall` Gradle task on the command line:

[source, sh, subs="+attributes"]
----
gradle {task-prefix}Resource {task-prefix}Helm {task-prefix}HelmInstall
----

[NOTE]
The `{task-prefix}Resource` and the `{task-prefix}Helm` tasks are required to create the resource descriptors which are included in the Helm chart and the Helm chart itself.
If you have already built the resource and created the chart, then you can omit these tasks.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[source,xml,indent=0,subs="verbatim,quotes,attributes"]
----
<plugin>
<configuration>
<helm>
<releaseName>test-release</dependencySkipRefresh>
<installDependencyUpdate>false</dependencyVerify>
<installWaitReady>false</installWaitReady>
</helm>
</configuration>
</plugin>
----
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
To install a Helm chart you need to invoke the `{goal-prefix}:helm-install` Maven goal on the command line:

[source, sh, subs="+attributes"]
----
mvn {goal-prefix}:resource {goal-prefix}:helm {goal-prefix}:helm-install
----

[NOTE]
The `{goal-prefix}:resource` and the `{goal-prefix}:helm` goals are required to create the resource descriptors which are included in the Helm chart and the Helm chart itself.
If you have already built the resource and created the chart, then you can omit these goals.
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ include::{kitdoc-path}/inc/helm/_jkube_helm.adoc[]
include::{kitdoc-path}/inc/helm/_jkube_helm_push.adoc[]
include::{kitdoc-path}/inc/helm/_jkube_helm_lint.adoc[]
include::{kitdoc-path}/inc/helm/_jkube_helm_dependency_update.adoc[]
include::{kitdoc-path}/inc/helm/_jkube_helm_install.adoc[]

0 comments on commit d8db3e6

Please sign in to comment.