Skip to content

Commit

Permalink
feat(bake/manifest): propegate "overrides" value (#2148)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwander committed Apr 13, 2018
1 parent 462bfaa commit 5271796
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import lombok.Data;

import java.util.List;
import java.util.Map;

@Data
public class BakeManifestRequest {
Expand All @@ -32,4 +33,6 @@ public class BakeManifestRequest {
List<Artifact> values;
@JsonProperty("outputName")
String outputName;
@JsonProperty("overrides")
Map<String, Object> overrides;
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

package com.netflix.spinnaker.orca.bakery.tasks.manifests;

import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.netflix.spinnaker.kork.artifacts.model.Artifact;
import com.netflix.spinnaker.orca.ExecutionStatus;
Expand Down Expand Up @@ -75,6 +76,7 @@ public TaskResult execute(@Nonnull Stage stage) {
request.setInputArtifact(artifact);
request.setTemplateRenderer((String) context.get("templateRenderer"));
request.setOutputName((String) context.get("outputName"));
request.setOverrides(objectMapper.convertValue(context.get("overrides"), new TypeReference<Map<String, Object>>() { }));

log.info("Requesting {}", request);
Artifact result = bakery.bakeManifest(request);
Expand Down

0 comments on commit 5271796

Please sign in to comment.