-
Notifications
You must be signed in to change notification settings - Fork 542
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-lint feature
Signed-off-by: Marc Nuri <marc@marcnuri.com>
- Loading branch information
Showing
21 changed files
with
193 additions
and
100 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
5 changes: 0 additions & 5 deletions
5
gradle-plugin/doc/src/main/asciidoc/inc/tasks/build/_jkube-helm-push.adoc
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
gradle-plugin/doc/src/main/asciidoc/inc/tasks/build/_jkube-helm.adoc
This file was deleted.
Oops, something went wrong.
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_lint.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-lint]] | ||
== *{goal-prefix}:helm-lint* | ||
endif::[] | ||
ifeval::["{plugin-type}" == "gradle"] | ||
[[jkubeHelmLint]] | ||
=== *{task-prefix}HelmLint* | ||
endif::[] | ||
|
||
This feature allows you to lint your Eclipse JKube-generated | ||
https://helm.sh/docs/topics/charts[Helm charts] and examine it for possible issues. | ||
|
||
It provides the same output as the https://helm.sh/docs/helm/helm_lint[`helm lint`] command. | ||
|
||
ifeval::["{plugin-type}" == "maven"] | ||
include::maven/_mvn_helm_lint.adoc[] | ||
endif::[] | ||
ifeval::["{plugin-type}" == "gradle"] | ||
include::gradle/_gradle_helm_lint.adoc[] | ||
endif::[] | ||
|
||
.Helm lint configuration | ||
[cols="1,5,1"] | ||
|=== | ||
| Element | Description | Property | ||
|
||
| *lintStrict* | ||
| Enable strict mode, fails on lint warnings. | ||
| `jkube.helm.lint.strict` | ||
|
||
| *lintQuiet* | ||
| Enable quiet mode, only shows warnings and errors. | ||
| `jkube.helm.lint.quiet` | ||
|
||
|=== | ||
|
||
.Example Helm lint configuration | ||
ifeval::["{plugin-type}" == "maven"] | ||
include::maven/_example_helm_lint_config.adoc[] | ||
endif::[] | ||
ifeval::["{plugin-type}" == "gradle"] | ||
include::gradle/_example_helm_lint_config.adoc[] | ||
endif::[] |
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
9 changes: 9 additions & 0 deletions
9
jkube-kit/doc/src/main/asciidoc/inc/helm/gradle/_example_helm_lint_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,9 @@ | ||
[source,groovy,indent=0,subs="verbatim,quotes,attributes"] | ||
---- | ||
kubernetes { | ||
helm { | ||
lintStrict = true | ||
lintQuiet = true | ||
} | ||
} | ||
---- |
10 changes: 10 additions & 0 deletions
10
jkube-kit/doc/src/main/asciidoc/inc/helm/gradle/_gradle_helm.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 generate the Helm chart you need to invoke the `{task-prefix}Helm` Gradle task on the command line: | ||
|
||
[source, sh, subs="+attributes"] | ||
---- | ||
gradle {task-prefix}Resource {task-prefix}Helm | ||
---- | ||
|
||
[NOTE] | ||
The `{task-prefix}Resource` goal is required to create the resource descriptors that are included in the Helm chart. | ||
If you have already generated the resources in a previous step then you can omit this task. |
10 changes: 10 additions & 0 deletions
10
jkube-kit/doc/src/main/asciidoc/inc/helm/gradle/_gradle_helm_lint.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 lint a Helm chart you need to invoke the `{task-prefix}HelmLint` Gradle task on the command line: | ||
|
||
[source, sh, subs="+attributes"] | ||
---- | ||
gradle {task-prefix}Resource {task-prefix}Helm {task-prefix}HelmLint | ||
---- | ||
|
||
[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. |
10 changes: 10 additions & 0 deletions
10
jkube-kit/doc/src/main/asciidoc/inc/helm/gradle/_gradle_helm_push.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 publish a Helm chart you need to invoke the `{task-prefix}HelmPush` Gradle task on the command line: | ||
|
||
[source, sh, subs="+attributes"] | ||
---- | ||
gradle {task-prefix}Resource {task-prefix}Helm {task-prefix}HelmPush | ||
---- | ||
|
||
[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. |
4 changes: 0 additions & 4 deletions
4
jkube-kit/doc/src/main/asciidoc/inc/helm/gradle/_resource_helm.adoc
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
jkube-kit/doc/src/main/asciidoc/inc/helm/gradle/_resource_helm_push.adoc
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
jkube-kit/doc/src/main/asciidoc/inc/helm/maven/_example_helm_lint_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,11 @@ | ||
[source,xml,indent=0,subs="verbatim,quotes,attributes"] | ||
---- | ||
<plugin> | ||
<configuration> | ||
<helm> | ||
<lintStrict>true</lintStrict> | ||
<lintQuiet>true</lintQuiet> | ||
</helm> | ||
</configuration> | ||
</plugin> | ||
---- |
10 changes: 10 additions & 0 deletions
10
jkube-kit/doc/src/main/asciidoc/inc/helm/maven/_mvn_helm.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 generate the Helm chart you need to invoke the`{goal-prefix}:helm` Maven goal on the command line: | ||
|
||
[source, sh, subs="+attributes"] | ||
---- | ||
mvn {goal-prefix}:resource {goal-prefix}:helm | ||
---- | ||
|
||
[NOTE] | ||
The `{goal-prefix}:resource` goal is required to create the resource descriptors that are included in the Helm chart. | ||
If you have already generated the resources in a previous step then you can omit this goal. |
Oops, something went wrong.