Skip to content

Commit

Permalink
feat(kubernetes): attribue to explicitly skip the outputs section in …
Browse files Browse the repository at this point in the history
…Deployment Manifest or Run Job stage

Most K8S deployments do not use the outputs in downstream stages. So, if it is not used
users can skip the output of the Deployment Manifest and Run Job (Manifest) stage by
specifiying the attribute noOutput set to false in the stage json.

This significantly reduces the execution context being saved in redis/databse or
sent to the browser.
  • Loading branch information
Nirmalyasen committed Dec 22, 2020
1 parent d33c26a commit 0d36ec9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public void taskGraph(@Nonnull StageExecution stage, @Nonnull TaskNode.Builder b
}
}

@Override
public void afterStages(@Nonnull StageExecution stage, @Nonnull StageGraphBuilder graph) {
if (stage.getContext().getOrDefault("noOutput", "false").toString().equals("true")) {
stage.setOutputs(emptyMap());
Expand Down

0 comments on commit 0d36ec9

Please # to comment.