-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Propagate WorkflowsService instance from WorkflowTemplate to the crea…
…ted Workflow (#1066) **Pull Request Checklist** - [ ] Fixes #<!--issue number goes here--> - [x] Tests added - [ ] Documentation/examples added - [x] [Good commit messages](https://cbea.ms/git-commit/) and/or PR title **Description of PR** Currently, when creating a workflow from a workflow template, it implicitly relies on the global config for the WorkflowsService, as it is not copying the service from the template. Thus, the simple example in the doc would fail, useless the Argo host is defined in the global config. This PR binds the WorkflowsService instance of the WorkflowTemplate to the created Workflow to propagate non-global configuration, and changes 2 tests to make sure the config is actually propagated. Thanks! Signed-off-by: Timothé Perez <[email protected]>
- Loading branch information
1 parent
345e687
commit 01235cf
Showing
2 changed files
with
13 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters