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

Dynamic step targets from workflow inputs #5

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

reallyroy
Copy link

This PR changes the Step Defintion target to a Property Assignment allowing us to use the get_input property function to set the target value dynamically from either workflow or template inputs.

@@ -10,7 +10,7 @@ type WorkflowDefinition struct {

// StepDefinition structure to handle workflow steps
type StepDefinition struct {
Target string `yaml:"target,omitempty" json:"target,omitempty"`
Target PropertyAssignment `yaml:"target,omitempty" json:"target,omitempty"`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Has the spec been updated to define Target as a PropertyAssignment?
Can you provide a link to the update spec where this was changed?

@reallyroy
Copy link
Author

reallyroy commented Apr 17, 2018

Updated the README.md file to explain why these changes were made. The fact that this change is backward compatible is also mentioned as well as the intention to eventually discuss this feature with the TOSCA spec owners.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants