diff --git a/test/images/agnhost/logs-generator/logs_generator.go b/test/images/agnhost/logs-generator/logs_generator.go index 9ff6120bacd..edce35b2859 100644 --- a/test/images/agnhost/logs-generator/logs_generator.go +++ b/test/images/agnhost/logs-generator/logs_generator.go @@ -44,7 +44,7 @@ var CmdLogsGenerator = &cobra.Command{ Use: "logs-generator", Short: "Outputs lines of logs to stdout uniformly", Long: "Outputs lines of logs to stdout uniformly for ", - Args: cobra.MaximumNArgs(2), + Args: cobra.MaximumNArgs(0), Run: generateLogs, } diff --git a/test/images/agnhost/no-snat-test-proxy/main.go b/test/images/agnhost/no-snat-test-proxy/main.go index 1a3febf5c59..1065ad579b4 100644 --- a/test/images/agnhost/no-snat-test-proxy/main.go +++ b/test/images/agnhost/no-snat-test-proxy/main.go @@ -31,7 +31,7 @@ var CmdNoSnatTestProxy = &cobra.Command{ Use: "no-snat-test-proxy", Short: "Creates a proxy for the /checknosnat endpoint", Long: `Creates the /checknosnat endpoint which proxies the request to the given target (/checknosnat?target=target_ip&ips=ip1,ip2) and returns its response, or a 500 response on error.`, - Args: cobra.MaximumNArgs(1), + Args: cobra.MaximumNArgs(0), Run: main, } diff --git a/test/images/agnhost/no-snat-test/main.go b/test/images/agnhost/no-snat-test/main.go index e77b53a34f6..da534743c4d 100644 --- a/test/images/agnhost/no-snat-test/main.go +++ b/test/images/agnhost/no-snat-test/main.go @@ -37,7 +37,7 @@ var CmdNoSnatTest = &cobra.Command{ - /whoami - returns the request's IP address. - /checknosnat - queries "ip/whoami" for each provided IP ("/checknosnat?ips=ip1,ip2"), and if all the response bodies match the "POD_IP" environment variable, it will return a 200 response, 500 otherwise.`, - Args: cobra.MaximumNArgs(1), + Args: cobra.MaximumNArgs(0), Run: main, }