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: Template defaults #5410

Merged
merged 18 commits into from
Mar 19, 2021
Merged

Conversation

sarabala1979
Copy link
Member

Checklist:

closes #3201

@sarabala1979 sarabala1979 requested a review from jessesuen as a code owner March 15, 2021 23:25
@sarabala1979 sarabala1979 marked this pull request as draft March 15, 2021 23:25
@codecov
Copy link

codecov bot commented Mar 16, 2021

Codecov Report

Merging #5410 (d72eec3) into master (f443204) will increase coverage by 0.20%.
The diff coverage is 42.50%.

❗ Current head d72eec3 differs from pull request most recent head 1c2f833. Consider uploading reports for the commit 1c2f833 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5410      +/-   ##
==========================================
+ Coverage   16.28%   16.48%   +0.20%     
==========================================
  Files         243      243              
  Lines       43665    43769     +104     
==========================================
+ Hits         7109     7214     +105     
+ Misses      35584    35573      -11     
- Partials      972      982      +10     
Impacted Files Coverage Δ
pkg/apis/workflow/v1alpha1/generated.pb.go 0.51% <0.00%> (-0.01%) ⬇️
pkg/apis/workflow/v1alpha1/openapi_generated.go 0.00% <0.00%> (ø)
...kg/apis/workflow/v1alpha1/zz_generated.deepcopy.go 7.50% <0.00%> (+4.01%) ⬆️
workflow/controller/operator.go 70.54% <65.85%> (-0.33%) ⬇️
pkg/apis/workflow/v1alpha1/workflow_types.go 45.52% <100.00%> (+1.98%) ⬆️
workflow/common/parse.go 29.41% <100.00%> (+3.22%) ⬆️
workflow/metrics/server.go 12.76% <0.00%> (-4.26%) ⬇️
workflow/controller/exec_control.go 50.54% <0.00%> (-2.20%) ⬇️
cmd/argo/commands/get.go 56.66% <0.00%> (+0.66%) ⬆️
cmd/argoexec/commands/emissary.go 50.00% <0.00%> (+1.56%) ⬆️
... and 2 more

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 f443204...1c2f833. Read the comment docs.

@sarabala1979 sarabala1979 marked this pull request as ready for review March 17, 2021 15:26
@@ -489,7 +492,7 @@ func (wfs *WorkflowSpec) HasPodSpecPatch() bool {
// Template is a reusable and composable unit of execution in a workflow
type Template struct {
// Name is the name of the template
Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"`
Copy link
Member Author

Choose a reason for hiding this comment

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

This field is validated by CLI, UI, and controller. But the only restriction when the user using swagger.json or SDK they need to set a dummy value on this.

@sarabala1979
Copy link
Member Author

I will add more unit test to cover the code coverage

@alexec alexec assigned jessesuen and unassigned alexec Mar 17, 2021
@alexec
Copy link
Contributor

alexec commented Mar 17, 2021

assigning @jessesuen for proto approval

Signed-off-by: Saravanan Balasubramanian <[email protected]>
@alexec alexec changed the title chore: Support template Defaults feat: Template defaults Mar 17, 2021
@sarabala1979
Copy link
Member Author

image
image

Copy link
Contributor

@alexec alexec left a comment

Choose a reason for hiding this comment

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

minor comments

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.

Allow setting defaults for template in workflows
3 participants