Skip to content

Commit

Permalink
feat: fix sync plan
Browse files Browse the repository at this point in the history
Signed-off-by: Ramiz Polic <[email protected]>
  • Loading branch information
ramizpolic committed Sep 8, 2023
1 parent f511932 commit 1589c6e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/testdata/syncjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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" }}'

0 comments on commit 1589c6e

Please sign in to comment.