From 1589c6ede230a2f8c7ff58b2eee4b7dd46c88d79 Mon Sep 17 00:00:00 2001 From: Ramiz Polic Date: Fri, 8 Sep 2023 16:26:48 +0200 Subject: [PATCH] feat: fix sync plan Signed-off-by: Ramiz Polic --- cmd/testdata/syncjob.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/testdata/syncjob.yaml b/cmd/testdata/syncjob.yaml index 65a2a04..9db05a8 100644 --- a/cmd/testdata/syncjob.yaml +++ b/cmd/testdata/syncjob.yaml @@ -21,7 +21,7 @@ dataFrom: secretRef: key: /credentials/password - ## Reference query, can return 0, 1, or multiple values + ## Reference query, can return 0, 1, or multiple secretRefs - name: dynamic-query secretQuery: path: /credentials @@ -35,24 +35,24 @@ dataTo: value: new-username ## Key-map, no templating, static values (either value or valueMap can be set, not both) - - key: /credentials/default-data + - key: /credentials/default-valueMap valueMap: username: new-username password: new-password ## Key-value, templated, dynamic values - - key: '1/{{ pathTo "username" }}/1' + - key: '{{ pathTo "username" }}/template-value' # => /credentials/template-value value: '{{ valueOf "username" }}/{{ valueOf "password" }}' ## Key-map, templated, dynamic values - - key: '2/{{ pathTo "username" }}/2' + - key: '{{ pathTo "username" }}/template-valueMap' # => /credentials/template-valueMap valueMap: username: '{{ valueOf "username" }}' password: '{{ valueOf "password" }}' ## Key-map from query, templated, dynamic values ## If the references are not found from the dynamic query, this will be skipped - - key: '3/{{ pathTo "dynamic-query.username" }}/3' + - key: '{{ pathTo "dynamic-query.username" }}/template-query' # => /credentials/template-query valueMap: username: '{{ valueOf "dynamic-query.username" }}' password: '{{ valueOf "dynamic-query.password" }}'