From fa9ca57ef877b161e217e37d9100e3c54d19f45f Mon Sep 17 00:00:00 2001 From: Andre Mauricio Zelak Date: Wed, 5 Jun 2024 09:22:10 -0300 Subject: [PATCH] Added daemonset.yaml volumes types Added volume types to avoid the K8s default behavior of creating a directory when host path isn't available. When applying multiple ptp instances, the varrun volumes weren't available for a long period of time, than K8s created a directory in place, causing a major issue. Test Plan: Pass: Verify ptp-notification operation when it starts before PTP configuration. Pass: Verify ptp-notification operation when it starts after PTP configuration. Pass: Verify ptp-notification operation when PTP configuration is reapplied. Pass: Verify ptp-notification operation after a system restart. Closes-Bug: 2068397 Change-Id: I94da0440192245c147265176f8da21ee42173615 Signed-off-by: Andre Mauricio Zelak --- .../ptp-notification/templates/daemonset.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/helm-charts/custom/ptp-notification-helm/ptp-notification-helm/ptp-notification/templates/daemonset.yaml b/helm-charts/custom/ptp-notification-helm/ptp-notification-helm/ptp-notification/templates/daemonset.yaml index 555b913..b85b31a 100644 --- a/helm-charts/custom/ptp-notification-helm/ptp-notification-helm/ptp-notification/templates/daemonset.yaml +++ b/helm-charts/custom/ptp-notification-helm/ptp-notification-helm/ptp-notification/templates/daemonset.yaml @@ -329,13 +329,16 @@ spec: - name: varrun hostPath: path: {{ .Values.ptptracking.ptp4lSocket }} + type: Socket {{ end }} - name: pmc hostPath: path: /usr/sbin/pmc + type: File - name: phcctl hostPath: path: /usr/sbin/phc_ctl + type: File - name: conf hostPath: path: /etc/