You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The user is able to provide the following linting options through the HelmConfig in the lint field and properties.
strict: jkube.helm.lint.strict
quiet: jkube.helm.lint.quiet
The linting messages are logged in white ([[W]]).
If linting fails:
The messages are logged using the error logger.
A RuntimeException is thrown with the message Linting failed.
If linting succeeds:
The messages are logged using the info logger.
A message is logged using the info logger with the message Linting successful.
Maven plugins
The Kubernetes Maven Plugin and OpenShift Maven Plugin expose a new helm-lint goal in a HelmLintMojo and OpenshiftHelmLintMojo that extends the basic HelmMojo (following a similar approach to that of HelmPushMojo).
The mojos are bound by default to the LifecyclePhase.INTEGRATION_TEST phase.
Gradle plugins
The Kubernetes Gradle Plugin and OpenShift Gradle Plugin expose a new helmLint task in a KubernetesHelmLintTask and OpenShiftHelmLintTask that extends the basic AbstractJKubeTask task.
An integration test proves that the task can be executed both, with a successful and a failed linting.
Documentation
The documentation exposes for each of the Maven, Gradle, Kubernetes, and OpenShift plugins reflects the new lint goal/task.
It includes a section with the linting options that can be provided in the HelmConfig argument and properties.
The text was updated successfully, but these errors were encountered:
Helm: helm-lint task/goal
#2613
Description
As an Eclipse JKube user, I want to be able to examine a chart for possible issues, so that I can fix them before packaging and deploying it.
Proposal
JKube Kit
JKube Kit exposes a new method
lint
that lints the chart provided in theHelmConfig
argument.This allows to lint the charts Eclipse JKube generates.
lint
command.lint
field and properties.strict
:jkube.helm.lint.strict
quiet
:jkube.helm.lint.quiet
white
([[W]]
).error
logger.Linting failed
.info
logger.info
logger with the messageLinting successful
.Maven plugins
The Kubernetes Maven Plugin and OpenShift Maven Plugin expose a new
helm-lint
goal in aHelmLintMojo
andOpenshiftHelmLintMojo
that extends the basicHelmMojo
(following a similar approach to that ofHelmPushMojo
).The mojos are bound by default to the
LifecyclePhase.INTEGRATION_TEST
phase.Gradle plugins
The Kubernetes Gradle Plugin and OpenShift Gradle Plugin expose a new
helmLint
task in aKubernetesHelmLintTask
andOpenShiftHelmLintTask
that extends the basicAbstractJKubeTask
task.An integration test proves that the task can be executed both, with a successful and a failed linting.
Documentation
The documentation exposes for each of the Maven, Gradle, Kubernetes, and OpenShift plugins reflects the new lint goal/task.
It includes a section with the linting options that can be provided in the
HelmConfig
argument and properties.The text was updated successfully, but these errors were encountered: