feat: add set action to recipe
AmitKumarDas opened this issue · comments
ProblemStatement: As an automation engineer I want to set various fields of a resource from one or more resources. I want to set them on various conditions.
kind: Recipe
spec:
tasks:
- name:
set:
target:
apiVersion:
kind:
name:
namespace:
withLabel:
keys:
- abc.io/name
when:
withAnnotation:
keys:
- abc.io/name
when:
withValue:
items:
- targetPath:
sourcePath:
default:
when:
fromSource:
apiVersion:
kind:
name:
namespace:
when:
- Read above schema as:
- Set target resource with values, labels &/or annotations from source resource
- Does this call for implementation of
unset
action as well? - Need to design
setAll
&bulkSet
actions as well