mayadata-io / d-operators

Declarative patterns to write kubernetes controllers
Apache License 2.0
10 stars 7 forks source link

feat: add set action to recipe #128

Open AmitKumarDas opened 4 years ago

AmitKumarDas commented 4 years ago

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: