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(condition) allow to not specify a sourceID for conditions (resulting in no source used by the condition) #321

Merged
merged 1 commit into from
Oct 21, 2021

Conversation

dduportal
Copy link
Contributor

@dduportal dduportal commented Oct 19, 2021

Fix #305

This PR introduces a new attribute disableSourceInput for conditions. It allows to disable the source's value input, letting condition to be "standalone".

The behavior depends on each resource: for instance in the case of a "shell", it won't append the value at the end of the command.

Todo:

Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
@dduportal dduportal force-pushed the feat/suppress-source-on-condition branch from c22afa8 to ab3909b Compare October 21, 2021 10:07
@dduportal dduportal changed the title Feat(condition) alllow to not specify a sourceID for conditions (resulting in no source used by the condition) Feat(condition) allow to not specify a sourceID for conditions (resulting in no source used by the condition) Oct 21, 2021
Spec interface{}
Scm map[string]interface{}
SourceID string `yaml:"sourceID"`
DependsOn []string `yaml:"depends_on"`
Copy link
Member

@olblak olblak Oct 21, 2021

Choose a reason for hiding this comment

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

This makes me realize that we should define a rule and stay consistent between camelCase and snake_case

"depends_on" vs "disableSourceInput"

But this PR is not the place for this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
condition Modify condition resource enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: stop inputing the source on conditions
2 participants