-
Notifications
You must be signed in to change notification settings - Fork 356
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
Optimize code for run apps #2076
Conversation
/test run |
Codecov ReportPatch coverage:
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more Additional details and impacted files@@ Coverage Diff @@
## main #2076 +/- ##
==========================================
+ Coverage 18.36% 18.63% +0.27%
==========================================
Files 100 99 -1
Lines 9313 9234 -79
==========================================
+ Hits 1710 1721 +11
+ Misses 7378 7287 -91
- Partials 225 226 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
3549131
to
16359da
Compare
/test all |
cmd/sealer/cmd/cluster/run.go
Outdated
appNames := infraDriver.GetClusterLaunchApps() | ||
|
||
// merge to application between v2.ClusterSpec, v2.Application and image extension | ||
v2App, err := application.NewV2Application(v2.ConstructApplication(cf.GetApplication(), cmds, appNames), imageSpec.ImageExtension) |
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.
lazy init the v2app
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.
i thought , if init app error ,return fast.
16359da
to
b20b5b0
Compare
optimize code for run apps
b20b5b0
to
1ae912c
Compare
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.
LGTM
Describe what this PR does / why we need it
Does this pull request fix one issue?
Describe how you did it
Describe how to verify it
Special notes for reviews