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(controller): Inline templates. Closes #5105 #5749

Merged
merged 7 commits into from
Aug 3, 2021

Conversation

alexec
Copy link
Contributor

@alexec alexec commented Apr 23, 2021

image

@codecov
Copy link

codecov bot commented Apr 23, 2021

Codecov Report

Merging #5749 (33f217c) into master (7f2c589) will increase coverage by 0.02%.
The diff coverage is 55.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5749      +/-   ##
==========================================
+ Coverage   48.50%   48.52%   +0.02%     
==========================================
  Files         260      260              
  Lines       18746    18754       +8     
==========================================
+ Hits         9092     9100       +8     
+ Misses       8661     8659       -2     
- Partials      993      995       +2     
Impacted Files Coverage Δ
pkg/apis/workflow/v1alpha1/workflow_types.go 50.05% <0.00%> (-0.35%) ⬇️
workflow/templateresolution/context.go 59.05% <57.14%> (-2.37%) ⬇️
workflow/common/util.go 15.25% <100.00%> (+4.96%) ⬆️
workflow/controller/operator.go 72.24% <0.00%> (+0.09%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7f2c589...33f217c. Read the comment docs.

@alexec alexec marked this pull request as ready for review April 23, 2021 18:52
@alexec alexec requested a review from jessesuen as a code owner April 23, 2021 18:52
@alexec alexec added this to the v3.2 milestone Apr 23, 2021
@alexec alexec linked an issue Apr 23, 2021 that may be closed by this pull request
@alexec alexec changed the title feat(controller): Inline templates feat(controller): Inline templates. Close #5105 Apr 23, 2021
@alexec alexec changed the title feat(controller): Inline templates. Close #5105 feat(controller): Inline templates. Closes #5105 Apr 23, 2021
@alexec alexec marked this pull request as draft April 27, 2021 23:13
@alexec alexec marked this pull request as ready for review May 26, 2021 18:12
@alexec
Copy link
Contributor Author

alexec commented Jun 8, 2021

@jessesuen could I please request your review on this? This is for v3.2, we have not released v3.1, so no hurry.

@alexec alexec enabled auto-merge (squash) June 9, 2021 19:29
@alexec alexec assigned sarabala1979 and unassigned jessesuen Jul 26, 2021
Signed-off-by: Alex Collins <[email protected]>
@sarabala1979
Copy link
Member

@alexec Quick question about this feature

  1. Will it support input/output artifacts and parameters?
  2. Can we define the inline in workflowtemplate and refer to it?
  3. Inline is referring to template struct. Will it allow to define the DAG/Step as inline?

@alexec
Copy link
Contributor Author

alexec commented Aug 2, 2021

  • Will it support input/output artifacts and parameters?

Yes.

  • Can we define the inline in workflowtemplate and refer to it?

No. It is not possible to reference inlined templates, by design.

  • Inline is referring to template struct. Will it allow to define the DAG/Step as inline?

Yes/no. You can inline a DAG within a DAG, or steps within steps etc, but there is the limitation is a single inline.

@sarabala1979
Copy link
Member

  • Will it support input/output artifacts and parameters?

Yes.

  • Can we define the inline in workflowtemplate and refer to it?

No. It is not possible to reference inlined templates, by design.

Can we add validation for this?

  • Inline is referring to template struct. Will it allow to define the DAG/Step as inline?

Yes/no. You can inline a DAG within a DAG, or steps within steps etc, but there is the limitation is a single inline.

Can we restrict with leaf template types like 'container, script, suspend, and resource`?

@alexec
Copy link
Contributor Author

alexec commented Aug 2, 2021

Can we add validation for this?

I don't think we need to do this for MVP. But later on, maybe.

Can we restrict with leaf template types like 'container, script, suspend, and resource`?

Again, I don't think we need this for MVP.

Signed-off-by: Alex Collins <[email protected]>
@alexec alexec merged commit ec96415 into argoproj:master Aug 3, 2021
@alexec alexec deleted the inline branch August 3, 2021 15:48
@sarabala1979 sarabala1979 mentioned this pull request Aug 11, 2021
28 tasks
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.

Inlined/anonymous templates
4 participants