Skip to content

Commit

Permalink
template renderer must be kustomize4
Browse files Browse the repository at this point in the history
Signed-off-by: salvatoremazz <[email protected]>
  • Loading branch information
mazzy89 committed Mar 31, 2023
1 parent 55d0855 commit 9111bb8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import com.netflix.spinnaker.rosco.jobs.BakeRecipe;
import com.netflix.spinnaker.rosco.manifests.ArtifactDownloader;
import com.netflix.spinnaker.rosco.manifests.BakeManifestEnvironment;
import com.netflix.spinnaker.rosco.manifests.BakeManifestRequest;
import com.netflix.spinnaker.rosco.manifests.config.RoscoKustomizeConfigurationProperties;
import com.netflix.spinnaker.rosco.manifests.kustomize.mapping.Kustomization;
import java.io.File;
Expand Down Expand Up @@ -133,7 +134,8 @@ private BakeRecipe buildBakeRecipeFromGitRepo(
command.add(executable);
command.add("build");

if (request.isEnableHelm()) {
if (request.isEnableHelm()
&& request.getTemplateRenderer() == BakeManifestRequest.TemplateRenderer.KUSTOMIZE4) {
command.add("--enable-helm");
}

Expand Down

0 comments on commit 9111bb8

Please sign in to comment.