Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
Fix #1689: HELM mode does not support parameters without value (#1713)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohanKanojia authored Oct 3, 2019
1 parent b5cf2c7 commit 7e0bd4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ After this we will switch probably to real [Semantic Versioning 2.0.0](http://se
* Fixed image config in thorntail sample
* Fix #1697: NullpointerException when trying to apply custom resources
* Fix #1696: fmp not setting imagestreams resourceVersion properly.
* Fix #1689: HELM mode does not support parameters without value
* Fix #1676: Support for latest kubernetes client
* Fix #1699: Ability to specify object namespace in fragments
* Feature #1536: Java Image Builder Support
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,9 @@ private void resolveTemplateVariables(List<io.fabric8.openshift.api.model.Parame
for (io.fabric8.openshift.api.model.Parameter parameter : parameters) {
String from = "${" + parameter.getName() + "}";
String to = parameter.getValue();
if (to == null) {
throw new MojoExecutionException("Missing value for HELM template parameter " + from + " in " + kubernetesYaml);
}
text = text.replace(from, to);
}
if (!original.equals(text)) {
Expand Down

0 comments on commit 7e0bd4d

Please sign in to comment.