Skip to content

Commit

Permalink
Substitute variables during patch
Browse files Browse the repository at this point in the history
  • Loading branch information
rjeberhard committed Aug 19, 2024
1 parent e62e133 commit cdeb0a1
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1116,9 +1116,13 @@ private Step patchPod(V1Pod currentPod, Step next) {
patchBuilder, "/metadata/labels/", getLabels(currentPod), getNonHashedPodLabels());
KubernetesUtils.addPatches(
patchBuilder, "/metadata/annotations/", getAnnotations(currentPod), getNonHashedPodAnnotations());

String patch = patchBuilder.build().toString();
patch = updateForDeepSubstitution(currentPod.getSpec(), patch);

return RequestBuilder.POD.patch(getNamespace(), getPodName(),
V1Patch.PATCH_FORMAT_JSON_PATCH,
new V1Patch(patchBuilder.build().toString()), patchResponse(next));
new V1Patch(patch), patchResponse(next));
}

private Step patchCurrentPod(V1Pod currentPod, Step next) {
Expand Down

0 comments on commit cdeb0a1

Please sign in to comment.