Slide 42
Slide 42 text
Istio iptables Implementation
func (r *RealDependencies) execute(cmd string, redirectStdout bool, args ...string) error
{
fmt.Printf("%s %s\n", cmd, strings.Join(args, " ")
)
externalCommand := exec.Command(cmd, args...)
externalCommand.Stdout = os.Stdou
t
// TODO Check naming and redirection logic
if !redirectStdout
{
externalCommand.Stderr = os.Stder
r
}
return externalCommand.Run(
)
}
https://github.com/istio/istio/blob/95c5fe4026f5a395893e92e1c9297a03b06b7dd4/tools/istio-iptables/pkg/dependencies/implementation.go#L27-L36