Skip to content

Commit 1fea78e

Browse files
committed
add FallbackToLogsOnError for easier debugging
1 parent 305d10f commit 1fea78e

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

bindata/nodecadaemon.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ spec:
6565
done
6666
sleep 60 & wait ${!}
6767
done
68+
terminationMessagePolicy: FallbackToLogsOnError
6869
volumeMounts:
6970
- name: serviceca
7071
mountPath: /tmp/serviceca

manifests/07-operator-ibm-cloud-managed.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ spec:
5656
requests:
5757
cpu: 10m
5858
memory: 50Mi
59+
terminationMessagePolicy: FallbackToLogsOnError
5960
volumeMounts:
6061
- mountPath: /var/run/configmaps/trusted-ca/
6162
name: trusted-ca

manifests/07-operator.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ spec:
7474
value: quay.io/openshift/origin-cli:v4.0
7575
- name: AZURE_ENVIRONMENT_FILEPATH
7676
value: /tmp/azurestackcloud.json
77+
terminationMessagePolicy: FallbackToLogsOnError
7778
volumeMounts:
7879
- name: trusted-ca
7980
mountPath: /var/run/configmaps/trusted-ca/

pkg/resource/podtemplatespec.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,7 @@ func makePodTemplateSpec(coreClient coreset.CoreV1Interface, proxyLister configl
510510
},
511511
},
512512
},
513+
TerminationMessagePolicy: corev1.TerminationMessageFallbackToLogsOnError,
513514
},
514515
},
515516
Volumes: volumes,

0 commit comments

Comments
 (0)