fix: Change longhorn-preflight command to longhornctl-local - #552
fix: Change longhorn-preflight command to longhornctl-local#552chattytak wants to merge 1 commit into
Conversation
|
@chattytak Could you create a BUG ticket in https://github.com/longhorn/longhorn/issues? Thanks. |
055f6d1 to
0af72f8
Compare
|
@derekbit |
There was a problem hiding this comment.
Pull request overview
Updates Longhorn preflight DaemonSet initContainer commands to use the newer longhornctl-local CLI instead of the deprecated longhorn-preflight binary, aligning the manifests with current Longhorn CLI options.
Changes:
deploy/install.yaml: Switch initContainer command fromlonghorn-preflighttolonghornctl-local install preflight.deploy/check.yaml: Switch initContainer command tolonghornctl-local …with additional subcommands intended to run preflight checks.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| deploy/install.yaml | Updates the preflight install initContainer to use longhornctl-local install preflight. |
| deploy/check.yaml | Updates the preflight check initContainer to use longhornctl-local, but currently composes subcommands in a way that appears incorrect. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
Suppressed comments (1)
deploy/check.yaml:24
- In this DaemonSet, the initContainer command currently resolves to
longhornctl-local install preflight check(becauseinstall preflightis followed by the existingcheckarg). The local CLI subcommands are structured aslonghornctl-local check preflight(see cmd/local/subcmd/check.go), whileinstall preflightdoes not have achecksubcommand. This will likely fail at runtime with an unknown command/arg error.
Consider changing the command args to longhornctl-local, check, preflight (and dropping the trailing check).
command:
- longhornctl-local
- install
- preflight
- check
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #552 +/- ##
======================================
Coverage 3.14% 3.14%
======================================
Files 42 42
Lines 3629 3629
======================================
Hits 114 114
Misses 3512 3512
Partials 3 3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
Suppressed comments (1)
deploy/check.yaml:24
deploy/check.yamlis intended to run a preflight check, but the updated command runs the installer subcommand (install preflight) and passescheckas an extra arg. Incmd/local/subcmd/check.go, the preflight check is implemented aslonghornctl-local check preflight, whilecmd/local/subcmd/install.goimplementslonghornctl-local install preflight; passingcheckafterinstall preflightwon’t invoke the checker logic.
- longhornctl-local
- install
- preflight
- check
|
Tick the box to add this pull request to the merge queue (same as
|
c3y1huang
left a comment
There was a problem hiding this comment.
The change LGTM, but should cleanup the commit history before merge. The fix-on-fix shouldn't land. Defering my approval until then to avoid triggering auto-merge.
Signed-off-by: chattytak <94992438+chattytak@users.noreply.github.com>
I have summarized the commits. |
The command is outdated and not working properly. It needs to be corrected to the current command options.