File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -230,17 +230,19 @@ func (te *Environment) Start() (*rest.Config, error) {
230
230
if os .Getenv (envAttachOutput ) == "true" {
231
231
te .AttachControlPlaneOutput = true
232
232
}
233
- if apiServer .Out == nil && te .AttachControlPlaneOutput {
234
- apiServer .Out = os .Stdout
235
- }
236
- if apiServer .Err == nil && te .AttachControlPlaneOutput {
237
- apiServer .Err = os .Stderr
238
- }
239
- if te .ControlPlane .Etcd .Out == nil && te .AttachControlPlaneOutput {
240
- te .ControlPlane .Etcd .Out = os .Stdout
241
- }
242
- if te .ControlPlane .Etcd .Err == nil && te .AttachControlPlaneOutput {
243
- te .ControlPlane .Etcd .Err = os .Stderr
233
+ if te .AttachControlPlaneOutput {
234
+ if apiServer .Out == nil {
235
+ apiServer .Out = os .Stdout
236
+ }
237
+ if apiServer .Err == nil {
238
+ apiServer .Err = os .Stderr
239
+ }
240
+ if te .ControlPlane .Etcd .Out == nil {
241
+ te .ControlPlane .Etcd .Out = os .Stdout
242
+ }
243
+ if te .ControlPlane .Etcd .Err == nil {
244
+ te .ControlPlane .Etcd .Err = os .Stderr
245
+ }
244
246
}
245
247
246
248
apiServer .Path = process .BinPathFinder ("kube-apiserver" , te .BinaryAssetsDirectory )
You can’t perform that action at this time.
0 commit comments