From cf29d5d6c4870667f68608249adb82acf39f361c Mon Sep 17 00:00:00 2001 From: salvatoremazz Date: Fri, 3 Feb 2023 18:49:06 +0100 Subject: [PATCH] template renderer must be kustomize4 Signed-off-by: salvatoremazz --- .../rosco/manifests/kustomize/KustomizeTemplateUtils.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rosco-manifests/src/main/java/com/netflix/spinnaker/rosco/manifests/kustomize/KustomizeTemplateUtils.java b/rosco-manifests/src/main/java/com/netflix/spinnaker/rosco/manifests/kustomize/KustomizeTemplateUtils.java index 14611d2ca..df624bacc 100644 --- a/rosco-manifests/src/main/java/com/netflix/spinnaker/rosco/manifests/kustomize/KustomizeTemplateUtils.java +++ b/rosco-manifests/src/main/java/com/netflix/spinnaker/rosco/manifests/kustomize/KustomizeTemplateUtils.java @@ -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; @@ -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"); }