-
Notifications
You must be signed in to change notification settings - Fork 529
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc : documentation for helm-dependency-update feature
Signed-off-by: Rohan Kumar <[email protected]>
- Loading branch information
1 parent
94f2303
commit a3e0642
Showing
9 changed files
with
109 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
jkube-kit/doc/src/main/asciidoc/inc/helm/_jkube_helm_dependency_update.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
ifeval::["{plugin-type}" == "maven"] | ||
[[jkube:helm-dependency-update]] | ||
== *{goal-prefix}:helm-dependency-update* | ||
endif::[] | ||
ifeval::["{plugin-type}" == "gradle"] | ||
[[jkubeHelmDependencyUpdate]] | ||
=== *{task-prefix}HelmDependencyUpdate* | ||
endif::[] | ||
|
||
This feature allows you to update dependencies of your Eclipse JKube-generated | ||
https://helm.sh/docs/topics/charts[Helm charts] | ||
|
||
It provides the same output as the https://helm.sh/docs/helm/helm_dependency_update/[`helm dependency update`] command. | ||
|
||
ifeval::["{plugin-type}" == "maven"] | ||
include::maven/_mvn_helm_dependency_update.adoc[] | ||
endif::[] | ||
ifeval::["{plugin-type}" == "gradle"] | ||
include::gradle/_gradle_helm_dependency_update.adoc[] | ||
endif::[] | ||
|
||
.Helm Dependency Update configuration | ||
[cols="1,5,1"] | ||
|=== | ||
| Element | Description | Property | ||
|
||
| *dependencyVerify* | ||
| verify the packages against signatures | ||
| `jkube.helm.dependencyVerify` | ||
|
||
| *dependencySkipRefresh* | ||
| do not refresh the local repository cache | ||
| `jkube.helm.dependencySkipRefresh` | ||
|
||
|=== | ||
|
||
.Example Helm Dependency Update configuration | ||
ifeval::["{plugin-type}" == "maven"] | ||
include::maven/_example_helm_dependency_update_config.adoc[] | ||
endif::[] | ||
ifeval::["{plugin-type}" == "gradle"] | ||
include::gradle/_example_helm_dependency_update_config.adoc[] | ||
endif::[] |
15 changes: 15 additions & 0 deletions
15
...c/src/main/asciidoc/inc/helm/gradle/_example_helm_dependency_update_config.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[source,groovy,indent=0,subs="verbatim,quotes,attributes"] | ||
---- | ||
kubernetes { | ||
helm { | ||
dependencyVerify = false | ||
debug = true | ||
dependencySkipRefresh = false | ||
dependencies = [{ | ||
name = "foo" | ||
version = "0.0.1" | ||
repository = "https://charts.example.com/test" | ||
}] | ||
} | ||
} | ||
---- |
10 changes: 10 additions & 0 deletions
10
...e-kit/doc/src/main/asciidoc/inc/helm/gradle/_gradle_helm_dependency_update.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
To update on-disk dependencies of a Helm chart you need to invoke the `{task-prefix}HelmDependencyUpdate` Gradle task on the command line: | ||
|
||
[source, sh, subs="+attributes"] | ||
---- | ||
gradle {task-prefix}Resource {task-prefix}Helm {task-prefix}HelmDependencyUpdate | ||
---- | ||
|
||
[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. |
20 changes: 20 additions & 0 deletions
20
...oc/src/main/asciidoc/inc/helm/maven/_example_helm_dependency_update_config.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[source,xml,indent=0,subs="verbatim,quotes,attributes"] | ||
---- | ||
<plugin> | ||
<configuration> | ||
<helm> | ||
<dependencies> | ||
<dependency> | ||
<name>foo</name> | ||
<version>0.0.1</version> | ||
<repository>https://charts.example.com/test-chart</repository> | ||
</dependency> | ||
</dependencies> | ||
<debug>true</debug> | ||
<dependencySkipRefresh>true</dependencySkipRefresh> | ||
<dependencyVerify>true</dependencyVerify> | ||
</helm> | ||
</configuration> | ||
</plugin> | ||
---- |
11 changes: 11 additions & 0 deletions
11
jkube-kit/doc/src/main/asciidoc/inc/helm/maven/_mvn_helm_dependency_update.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
To update on-disk dependencies of a Helm chart you need to invoke the `{goal-prefix}:helm-dependency-update` Maven goal on the command line: | ||
|
||
[source, sh, subs="+attributes"] | ||
---- | ||
mvn {goal-prefix}:resource {goal-prefix}:helm {goal-prefix}:helm-dependency-update | ||
---- | ||
|
||
[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. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters