Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(kustomize): add enable-helm flag for kustomize4 #947

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@
public class KustomizeBakeManifestRequest extends BakeManifestRequest {
private Artifact inputArtifact;
private String kustomizeFilePath;
private boolean enableHelm;
}
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 @@ -132,6 +133,12 @@ private BakeRecipe buildBakeRecipeFromGitRepo(
List<String> command = new ArrayList<>();
command.add(executable);
command.add("build");

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

command.add(env.resolvePath(kustomizeFilePath).getParent().toString());

BakeRecipe result = new BakeRecipe();
Expand Down
Loading