|
|
@ -42,11 +42,15 @@ func makeBootstrapPipe(bootstrapJSON []byte) (string, error) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Write the config
|
|
|
|
// Write the config
|
|
|
|
_, err = pipeConn.Write(bootstrapJSON)
|
|
|
|
n, err = pipeConn.Write(bootstrapJSON)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return pipeFile, err
|
|
|
|
return pipeFile, err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if n < len(bootstrapJSON) {
|
|
|
|
|
|
|
|
return pipeFile, fmt.Errorf("failed writing boostrap to child STDIN: %s", err)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// We can't wait for the process since we need to exec into Envoy before it
|
|
|
|
// We can't wait for the process since we need to exec into Envoy before it
|
|
|
|
// will be able to complete so it will be remain as a zombie until Envoy is
|
|
|
|
// will be able to complete so it will be remain as a zombie until Envoy is
|
|
|
|
// killed then will be reaped by the init process (pid 0). This is all a bit
|
|
|
|
// killed then will be reaped by the init process (pid 0). This is all a bit
|
|
|
|