Skip to content
This repository was archived by the owner on Feb 28, 2023. It is now read-only.

Commit 0740535

Browse files
committed
Add option to customize patch id in renderPatch()
1 parent b829b47 commit 0740535

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/resource-locker.libjsonnet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ local resource_locker_version =
2121
// Inject `id` for patches for resource-locker v1.x
2222
// Defaults to v1.x logic when image version cannot be determined from
2323
// parameters.
24-
local render_patch(patch, rl_version) =
24+
local render_patch(patch, rl_version, patch_id='patch1') =
2525
if (
2626
rl_version != null &&
2727
std.startsWith(rl_version, 'v0')
2828
) then
2929
patch
3030
else
3131
patch {
32-
id: 'patch1',
32+
id: patch_id,
3333
};
3434

3535
/**

0 commit comments

Comments
 (0)