-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
feat: Template defaults #5410
Conversation
Signed-off-by: Saravanan Balasubramanian <[email protected]>
Signed-off-by: Saravanan Balasubramanian <[email protected]>
Signed-off-by: Saravanan Balasubramanian <[email protected]>
Signed-off-by: Saravanan Balasubramanian <[email protected]>
Signed-off-by: Saravanan Balasubramanian <[email protected]>
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
@@ -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"` |
There was a problem hiding this comment.
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.
I will add more unit test to cover the code coverage |
assigning @jessesuen for proto approval |
Signed-off-by: Saravanan Balasubramanian <[email protected]>
Signed-off-by: Saravanan Balasubramanian <[email protected]>
Signed-off-by: Saravanan Balasubramanian <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor comments
Checklist:
closes #3201