Skip to content

Use Command and Args properly#29

Merged
lwr20 merged 2 commits intoprojectcalico:mainfrom
lwr20:lwr-cmd-args
Dec 18, 2025
Merged

Use Command and Args properly#29
lwr20 merged 2 commits intoprojectcalico:mainfrom
lwr20:lwr-cmd-args

Conversation

@lwr20
Copy link
Member

@lwr20 lwr20 commented Dec 17, 2025

And run goftmt over all go files

Copy link
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 refactors Kubernetes pod specifications to properly separate Command and Args fields, and applies gofmt formatting across multiple Go files. The changes fix potential runtime issues where commands were incorrectly specified only in the Args field without an explicit Command.

Key changes:

  • Separated Command and Args in pod specifications for qperf, iperf, and dnsperf containers
  • Removed unused args parameter from makeDeployment function in the cluster package
  • Applied gofmt formatting to align struct fields in test files and result structures

Reviewed changes

Copilot reviewed 5 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pkg/qperf/qperf.go Moved qperf command from Args to Command field, properly separating executable path from arguments
pkg/iperf/iperf.go Moved shell invocation (/bin/sh -c) from Args to Command field for correct execution
pkg/dnsperf/dnsperf.go Moved shell invocation from Args to Command field (also standardized to /bin/sh) and fixed comment spacing
pkg/cluster/cluster_internal.go Removed unused args parameter from makeDeployment function signature and removed Args field from container spec
pkg/cluster/cluster.go Updated makeDeployment function calls to remove the now-unused args parameter
pkg/stats/stats_test.go Applied gofmt formatting to align struct field names in test cases
pkg/results/results.go Applied gofmt formatting to align struct field types

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@lwr20 lwr20 merged commit 29b26ca into projectcalico:main Dec 18, 2025
6 checks passed
lwr20 added a commit that referenced this pull request Dec 18, 2025
* label each  pod with at least as many labels as policies (#26)

* label each  pod with at least as many labels as policies

* allow for no test to run, just setup env

* generate total mesh of policies that are not groupped

* Use Command and Args properly (#29)

---------

Co-authored-by: Tomas Hruby <49207409+tomastigera@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants