-
Notifications
You must be signed in to change notification settings - Fork 177
Fix co-scheduling/affinity issues #3350
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
Changes from all commits
6044fb7
419d7a8
1b56337
06bb924
8c4e407
b1ed477
ec8cadb
456ff4f
859270b
f2eb05e
c7def23
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,6 +46,15 @@ func newS2IGenerateCmd() *cobra.Command { | |
| genCmd := &cobra.Command{ | ||
| RunE: func(cmd *cobra.Command, args []string) error { | ||
| config.envVars = args | ||
|
|
||
| if config.middlewareVersion == "" { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing unit (or integration in that case because of direct use of
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll can add more test later. Integration tests for on cluster build should partly cover this already. |
||
| bs, err := os.ReadFile(middlewareFileName) | ||
| if err != nil { | ||
| return fmt.Errorf("cannot read middleware file: %w", err) | ||
| } | ||
| config.middlewareVersion = string(bs) | ||
| } | ||
|
|
||
| return runS2IGenerate(cmd.Context(), config) | ||
| }, | ||
| } | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
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.
New added logic with conditions without tests covering it.
I noticed that tests are missing for
main.goands2i_generate.go. Please add them in a follow up PR. Or is there a reason not to add them?