Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add set action to recipe #128

Open
AmitKumarDas opened this issue Aug 10, 2020 · 0 comments
Open

feat: add set action to recipe #128

AmitKumarDas opened this issue Aug 10, 2020 · 0 comments

Comments

@AmitKumarDas
Copy link

AmitKumarDas commented Aug 10, 2020

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant