Skip to content

Commit

Permalink
feat(provider/kubernetes) - adds configMap replacer support for repli…
Browse files Browse the repository at this point in the history
…casets (#2310)
  • Loading branch information
imosquera authored and lwander committed Jan 23, 2018
1 parent 0692649 commit 019919e
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ public KubernetesReplicaSetHandler() {
.type(ArtifactTypes.DOCKER_IMAGE)
.build()
);
registerReplacer(
Replacer.builder()
.replacePath("$.spec.template.spec.volumes.[?( @.configMap.name == \"{%name%}\" )].configMap.name")
.findPath("$.spec.template.spec.volumes.*.configMap.name")
.type(ArtifactTypes.KUBERNETES_CONFIG_MAP)
.build()
);
}

@Override
Expand Down

0 comments on commit 019919e

Please sign in to comment.