Skip to content

fix(makefile): remove unsupported workload-manager run flags#332

Merged
volcano-sh-bot merged 1 commit into
volcano-sh:mainfrom
mrinalchaturvedi27:fix-workloadmanager-run-flags
May 19, 2026
Merged

fix(makefile): remove unsupported workload-manager run flags#332
volcano-sh-bot merged 1 commit into
volcano-sh:mainfrom
mrinalchaturvedi27:fix-workloadmanager-run-flags

Conversation

@mrinalchaturvedi27
Copy link
Copy Markdown
Contributor

@mrinalchaturvedi27 mrinalchaturvedi27 commented May 13, 2026

What type of PR is this?

/kind bug

What this PR does / why we need it:

This fixes the workload-manager Makefile run targets. They no longer pass unsupported flags, so local development commands do not fail during flag parsing.

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

NONE

What I fixed

I fixed the workload-manager run commands in the Makefile.

Earlier, make run and make run-local passed flags that the workload-manager binary does not have. Because of that, the command could fail during flag.Parse() before the server started.

How I found it

I checked the flags passed from the Makefile and compared them with the flags defined in cmd/workload-manager/main.go.

The binary has these flags:

  • port
  • runtime-class-name
  • enable-tls
  • tls-cert
  • tls-key
  • enable-auth

It does not have ssh-username, ssh-port, or kubeconfig.

What I changed

  • Removed --ssh-username=sandbox from make run.
  • Removed --ssh-port=22 from make run.
  • Removed the unsupported SSH flags from make run-local.
  • Removed --kubeconfig from make run-local.

Why this is correct

This fixes the issue at the place where the bad flags were added. I did not add new flags to the Go binary because these Makefile flags were not connected to any workload-manager behavior.

For local kubeconfig use, client-go already checks the normal kubeconfig locations and respects any KUBECONFIG value the user has set. So make run-local does not need to force a path.

Tests

  • make -n run - Passed. The command now only passes --port=8080.
  • make -n run-local - Passed. The command now only passes --port=8080.
  • git diff --check - Passed.
  • DCO - Passed.

Copilot AI review requested due to automatic review settings May 13, 2026 17:14
@volcano-sh-bot volcano-sh-bot added the kind/bug Something isn't working label May 13, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes workload-manager development Makefile targets by removing flags unsupported by cmd/workload-manager/main.go, preventing local runs from failing during flag parsing.

Changes:

  • Removed unsupported SSH-related flags from make run and make run-local.
  • Replaced the unsupported --kubeconfig flag with the standard KUBECONFIG environment variable for make run-local.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request simplifies the run and run-local targets in the Makefile by removing SSH-related flags and modifying how the Kubernetes configuration is handled. Feedback indicates that hardcoding the KUBECONFIG environment variable is redundant and restrictive, as the Kubernetes client library defaults to the same path automatically; removing this explicit assignment would allow users to override the configuration more easily and avoid issues with paths containing spaces.

Comment thread Makefile Outdated
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 13, 2026

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.12%. Comparing base (524e55e) to head (a5d93d6).
⚠️ Report is 54 commits behind head on main.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #332      +/-   ##
==========================================
+ Coverage   47.57%   49.12%   +1.55%     
==========================================
  Files          30       30              
  Lines        2819     2858      +39     
==========================================
+ Hits         1341     1404      +63     
+ Misses       1338     1301      -37     
- Partials      140      153      +13     
Flag Coverage Δ
unittests 49.12% <ø> (+1.55%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Signed-off-by: Mrinal Chaturvedi <mrinal.chaturvedi27@gmail.com>
@mrinalchaturvedi27 mrinalchaturvedi27 force-pushed the fix-workloadmanager-run-flags branch from 009d6d5 to a5d93d6 Compare May 14, 2026 02:41
Copy link
Copy Markdown
Member

@hzxuzhonghu hzxuzhonghu left a comment

Choose a reason for hiding this comment

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

/lgtm

We would remove these cmd in future

@volcano-sh-bot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hzxuzhonghu

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@volcano-sh-bot volcano-sh-bot merged commit f126bb3 into volcano-sh:main May 19, 2026
15 checks passed
@hzxuzhonghu
Copy link
Copy Markdown
Member

Clean removal — those flags don't exist anymore so they'd just cause a startup failure. LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants