INNER CODE UNIT · Go
_main
aws/amazon-vpc-cni-k8s · cmd/aws-vpc-cni/main.go:418
func _main() int {
log.Debug("Started aws-node container")
if !validateEnvVars() {
return 1
}
pluginBins := []string{"aws-cni", "egress-cni"}
hostCNIBinPath := utils.GetEnv(envHostCniBinPath, defaultHostCniBinPath)
err := cp.InstallBinaries(pluginBins, hostCNIBinPath)
if err != nil {
log.WithError(err).Error("Failed to install CNI binaries")
return 1
}
log.Infof("Starting IPAM daemon... ")
cmd := "./aws-k8s-agent"
// Exec redirects stdout and stderr to /dev/null, redirecting to os.Stdout and os.Stderr is done explicitly.