Skip to content

Commit

Permalink
Merge pull request #30 from openshift-kni/tnf-fix-observability-termi…
Browse files Browse the repository at this point in the history
…nation-policy

Add terminationMessagePolicy: FallbackToLogsOnError to fix observability-termination-policy tnf test
  • Loading branch information
ramperher authored Dec 14, 2023
2 parents 886ca6e + d2dea14 commit 86c91d5
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions cnf-app-mac-operator/config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
terminationMessagePolicy: FallbackToLogsOnError
terminationGracePeriodSeconds: 10
1 change: 1 addition & 0 deletions testpmd-lb-operator/config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,6 @@ spec:
port: 6789
initialDelaySeconds: 5
periodSeconds: 10
terminationMessagePolicy: FallbackToLogsOnError
serviceAccountName: controller-manager
terminationGracePeriodSeconds: 10
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ spec:
- name: {{ key }}
value: "{{ value }}"
{% endfor %}
terminationMessagePolicy: FallbackToLogsOnError
- name: listener
image: "{{ image_listener }}"
imagePullPolicy: "{{ image_pull_policy }}"
Expand Down Expand Up @@ -146,6 +147,7 @@ spec:
- name: {{ key }}
value: "{{ value }}"
{% endfor %}
terminationMessagePolicy: FallbackToLogsOnError
volumes:
- name: hugepage
emptyDir:
Expand Down
1 change: 1 addition & 0 deletions testpmd-operator/config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,6 @@ spec:
port: 6789
initialDelaySeconds: 5
periodSeconds: 10
terminationMessagePolicy: FallbackToLogsOnError
serviceAccountName: controller-manager
terminationGracePeriodSeconds: 10
1 change: 1 addition & 0 deletions testpmd-operator/roles/testpmd/templates/daemonset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ spec:
volumeMounts:
- name: host-cni-bin
mountPath: /hostbin
terminationMessagePolicy: FallbackToLogsOnError
volumes:
- name: host-cni-bin
hostPath:
Expand Down
1 change: 1 addition & 0 deletions testpmd-operator/roles/testpmd/templates/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ spec:
- name: {{ key }}
value: "{{ value }}"
{% endfor %}
terminationMessagePolicy: FallbackToLogsOnError
volumes:
- name: hugepage
emptyDir:
Expand Down
1 change: 1 addition & 0 deletions testpmd-operator/testpmd-allinone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -211,5 +211,6 @@ spec:
port: 6789
initialDelaySeconds: 5
periodSeconds: 10
terminationMessagePolicy: FallbackToLogsOnError
serviceAccountName: testpmd-operator-controller-manager
terminationGracePeriodSeconds: 10
1 change: 1 addition & 0 deletions trex-operator/config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@ spec:
port: 6789
initialDelaySeconds: 5
periodSeconds: 10
terminationMessagePolicy: FallbackToLogsOnError
serviceAccountName: controller-manager
terminationGracePeriodSeconds: 10
1 change: 1 addition & 0 deletions trex-operator/roles/app/templates/job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ spec:
- name: PACKET_RATE
value: "{{ packet_rate }}"
{% endif %}
terminationMessagePolicy: FallbackToLogsOnError
volumes:
- name: varlog
emptyDir: {}
Expand Down
2 changes: 2 additions & 0 deletions trex-operator/roles/server/templates/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ spec:
- name: {{ key }}
value: "{{ value }}"
{% endfor %}
terminationMessagePolicy: FallbackToLogsOnError
{% endif %}
{% if trex_app|bool %}
- name: trex-app
Expand All @@ -130,6 +131,7 @@ spec:
- name: {{ key }}
value: "{{ value }}"
{% endfor %}
terminationMessagePolicy: FallbackToLogsOnError
{% endif %}
volumes:
- name: hugepage
Expand Down
1 change: 1 addition & 0 deletions trex-operator/trex-allinone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -240,4 +240,5 @@ spec:
image: jumphost.cluster5.dfwt5g.lab:5000/nfv-example-cnf/trex-operator:v0.1.0
imagePullPolicy: Always
name: manager
terminationMessagePolicy: FallbackToLogsOnError
terminationGracePeriodSeconds: 10

0 comments on commit 86c91d5

Please sign in to comment.