Skip to content

Clean up command calls #10

@graven

Description

@graven

This is how the syntax for most steps looks today (actual example):

- create-db: # Create database or DemoSite. Here we use serviceCall action, this way we can call additional workflows in submodules
    action: serviceCall
    phase: create-db
    precedingPhases: [ get-env-props ]
    parameters:
        timeout: 600
        service: mysql # correseponded to interface mysql in component main.workflow
        command: db # correseponded to pin mysql.db in component main.workflow
        arguments:
            db-name: "{$.db-name}" # send-command parameter
            db-action: "create"  # send-command parameter

In the current version, the same action can be written down with a much shorter syntax:

- create-db: # Create database or DemoSite. Here we use serviceCall action, this way we can call additional workflows in submodules
    action: mysql.db
    precedingPhases: [ get-env-props ]
    parameters:
        commandCallTimeout: 10 minutes
        db-name: "{$.db-name}" # send-command parameter
        db-action: "create"  # send-command parameter

Since people are using our manifests as examples, we need to update the command calls to use the cleaner syntax.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions