Update ptp notification helm chart
This commit add parameters in the ptp-notification helm chart for config file paths, holdover and frequency time interval values for the GNSS, OS clock and overall sync monitors. Test Plan: PASS: Apply application with helm chart overrides. Story: 2010056 Task: 46012 Signed-off-by: Teresa Ho <teresa.ho@windriver.com> Change-Id: I7630c045ade2fb155657c19614508bcce020e90e
This commit is contained in:
parent
b626d725e7
commit
92ee78e86f
@ -57,7 +57,16 @@ PTP_DEVICE_SIMULATED = os.environ.get("PTP_DEVICE_SIMULATED", True)
|
|||||||
PTP_HOLDOVER_SECONDS = os.environ.get("PTP_HOLDOVER_SECONDS", 30)
|
PTP_HOLDOVER_SECONDS = os.environ.get("PTP_HOLDOVER_SECONDS", 30)
|
||||||
PTP_POLL_FREQ_SECONDS = os.environ.get("PTP_POLL_FREQ_SECONDS", 2)
|
PTP_POLL_FREQ_SECONDS = os.environ.get("PTP_POLL_FREQ_SECONDS", 2)
|
||||||
|
|
||||||
GNSS_CONFIGS = os.environ.get("TS2PHC_CONFIGS", ["/ptp/ptpinstance/ts2phc-ts1.conf"])
|
GNSS_HOLDOVER_SECONDS = os.environ.get("GNSS_HOLDOVER_SECONDS", 30)
|
||||||
|
GNSS_POLL_FREQ_SECONDS = os.environ.get("GNSS_POLL_FREQ_SECONDS", 2)
|
||||||
|
|
||||||
|
OS_CLOCK_HOLDOVER_SECONDS = os.environ.get("OS_CLOCK_HOLDOVER_SECONDS", 30)
|
||||||
|
OS_CLOCK_POLL_FREQ_SECONDS = os.environ.get("OS_CLOCK_POLL_FREQ_SECONDS", 2)
|
||||||
|
|
||||||
|
OVERALL_HOLDOVER_SECONDS = os.environ.get("OVERALL_HOLDOVER_SECONDS", 30)
|
||||||
|
OVERALL_POLL_FREQ_SECONDS = os.environ.get("OVERALL_POLL_FREQ_SECONDS", 2)
|
||||||
|
|
||||||
|
GNSS_CONFIGS = json.loads(os.environ.get("TS2PHC_CONFIGS", ["/ptp/ptpinstance/ts2phc-ts1.conf"]))
|
||||||
PHC2SYS_CONFIG = os.environ.get("PHC2SYS_CONFIG", "/ptp/ptpinstance/phc2sys-phc-inst1.conf")
|
PHC2SYS_CONFIG = os.environ.get("PHC2SYS_CONFIG", "/ptp/ptpinstance/phc2sys-phc-inst1.conf")
|
||||||
|
|
||||||
context = {
|
context = {
|
||||||
@ -73,6 +82,18 @@ context = {
|
|||||||
'device_simulated': PTP_DEVICE_SIMULATED,
|
'device_simulated': PTP_DEVICE_SIMULATED,
|
||||||
'holdover_seconds': PTP_HOLDOVER_SECONDS,
|
'holdover_seconds': PTP_HOLDOVER_SECONDS,
|
||||||
'poll_freq_seconds': PTP_POLL_FREQ_SECONDS
|
'poll_freq_seconds': PTP_POLL_FREQ_SECONDS
|
||||||
|
},
|
||||||
|
'gnsstracker_context': {
|
||||||
|
'holdover_seconds': GNSS_HOLDOVER_SECONDS,
|
||||||
|
'poll_freq_seconds': GNSS_POLL_FREQ_SECONDS
|
||||||
|
},
|
||||||
|
'osclocktracker_context': {
|
||||||
|
'holdover_seconds': OS_CLOCK_HOLDOVER_SECONDS,
|
||||||
|
'poll_freq_seconds': OS_CLOCK_POLL_FREQ_SECONDS
|
||||||
|
},
|
||||||
|
'overalltracker_context': {
|
||||||
|
'holdover_seconds': OVERALL_HOLDOVER_SECONDS,
|
||||||
|
'poll_freq_seconds': OVERALL_POLL_FREQ_SECONDS
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -111,6 +111,18 @@ spec:
|
|||||||
value: "{{ .Values.ptptracking.device.holdover_seconds }}"
|
value: "{{ .Values.ptptracking.device.holdover_seconds }}"
|
||||||
- name: PTP_POLL_FREQ_SECONDS
|
- name: PTP_POLL_FREQ_SECONDS
|
||||||
value: "{{ .Values.ptptracking.device.poll_freq_seconds }}"
|
value: "{{ .Values.ptptracking.device.poll_freq_seconds }}"
|
||||||
|
- name: GNSS_HOLDOVER_SECONDS
|
||||||
|
value: "{{ .Values.ptptracking.gnss.holdover_seconds }}"
|
||||||
|
- name: GNSS_POLL_FREQ_SECONDS
|
||||||
|
value: "{{ .Values.ptptracking.gnss.poll_freq_seconds }}"
|
||||||
|
- name: OS_CLOCK_HOLDOVER_SECONDS
|
||||||
|
value: "{{ .Values.ptptracking.osclock.holdover_seconds }}"
|
||||||
|
- name: OS_CLOCK_POLL_FREQ_SECONDS
|
||||||
|
value: "{{ .Values.ptptracking.osclock.poll_freq_seconds }}"
|
||||||
|
- name: OVERALL_HOLDOVER_SECONDS
|
||||||
|
value: "{{ .Values.ptptracking.overall.holdover_seconds }}"
|
||||||
|
- name: OVERALL_POLL_FREQ_SECONDS
|
||||||
|
value: "{{ .Values.ptptracking.overall.poll_freq_seconds }}"
|
||||||
- name: NOTIFICATIONSERVICE_USER
|
- name: NOTIFICATIONSERVICE_USER
|
||||||
value: "admin"
|
value: "admin"
|
||||||
- name: NOTIFICATIONSERVICE_PASS
|
- name: NOTIFICATIONSERVICE_PASS
|
||||||
@ -129,6 +141,12 @@ spec:
|
|||||||
value: "{{ .Values.ptptracking.ptp4lServiceName }}"
|
value: "{{ .Values.ptptracking.ptp4lServiceName }}"
|
||||||
- name: PHC2SYS_SERVICE_NAME
|
- name: PHC2SYS_SERVICE_NAME
|
||||||
value: "{{ .Values.ptptracking.phc2sysServiceName }}"
|
value: "{{ .Values.ptptracking.phc2sysServiceName }}"
|
||||||
|
- name: PHC2SYS_CONFIG
|
||||||
|
value: "/ptp/ptpinstance/phc2sys-{{.Values.ptptracking.phc2sysServiceName}}.conf"
|
||||||
|
- name: TS2PHC_SERVICE_NAME
|
||||||
|
value: "{{ .Values.ptptracking.ts2phcServiceName }}"
|
||||||
|
- name: TS2PHC_CONFIGS
|
||||||
|
value: '["/ptp/ptpinstance/ts2phc-{{.Values.ptptracking.ts2phcServiceName}}.conf"]'
|
||||||
command: ["/bin/bash", "/mnt/ptptracking_start.sh"]
|
command: ["/bin/bash", "/mnt/ptptracking_start.sh"]
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
@ -149,10 +167,24 @@ spec:
|
|||||||
- name: pmc
|
- name: pmc
|
||||||
mountPath: /usr/sbin/pmc
|
mountPath: /usr/sbin/pmc
|
||||||
readOnly: false
|
readOnly: false
|
||||||
|
- name: phcctl
|
||||||
|
mountPath: /usr/sbin/phc_ctl
|
||||||
|
readOnly: false
|
||||||
{{ end }}
|
{{ end }}
|
||||||
- name: conf
|
- name: conf
|
||||||
mountPath: /ptp/
|
mountPath: /ptp/
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
- name: logs
|
||||||
|
mountPath: /logs/
|
||||||
|
readOnly: true
|
||||||
|
- name: ice
|
||||||
|
mountPath: /ice/
|
||||||
|
readOnly: true
|
||||||
|
- name: proc
|
||||||
|
mountPath: /host/proc/
|
||||||
|
- name: hostsys
|
||||||
|
mountPath: /hostsys/
|
||||||
|
readOnly: true
|
||||||
volumes:
|
volumes:
|
||||||
- name: scripts
|
- name: scripts
|
||||||
configMap:
|
configMap:
|
||||||
@ -170,10 +202,29 @@ spec:
|
|||||||
- name: pmc
|
- name: pmc
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /usr/sbin/pmc
|
path: /usr/sbin/pmc
|
||||||
|
- name: phcctl
|
||||||
|
hostPath:
|
||||||
|
path: /usr/sbin/phc_ctl
|
||||||
- name: conf
|
- name: conf
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /etc/
|
path: /etc/
|
||||||
type: Directory
|
type: Directory
|
||||||
|
- name: logs
|
||||||
|
hostPath:
|
||||||
|
path: /var/log/
|
||||||
|
type: Directory
|
||||||
|
- name: ice
|
||||||
|
hostPath:
|
||||||
|
path: /sys/kernel/debug/ice/
|
||||||
|
type: Directory
|
||||||
|
- name: proc
|
||||||
|
hostPath:
|
||||||
|
path: /proc
|
||||||
|
type: Directory
|
||||||
|
- name: hostsys
|
||||||
|
hostPath:
|
||||||
|
path: /sys/
|
||||||
|
type: Directory
|
||||||
tolerations:
|
tolerations:
|
||||||
- key: "node-role.kubernetes.io/master"
|
- key: "node-role.kubernetes.io/master"
|
||||||
operator: "Exists"
|
operator: "Exists"
|
||||||
|
@ -69,6 +69,7 @@ ptptracking:
|
|||||||
ptp4lSocket: /var/run/ptp4l-ptp4l-legacy
|
ptp4lSocket: /var/run/ptp4l-ptp4l-legacy
|
||||||
ptp4lServiceName: ptp4l-legacy
|
ptp4lServiceName: ptp4l-legacy
|
||||||
phc2sysServiceName: phc2sys-legacy
|
phc2sysServiceName: phc2sys-legacy
|
||||||
|
ts2phcServiceName: ts2phc-legacy
|
||||||
image:
|
image:
|
||||||
repository: starlingx/notificationservice-base
|
repository: starlingx/notificationservice-base
|
||||||
tag: stx.7.0-v1.0.5
|
tag: stx.7.0-v1.0.5
|
||||||
@ -77,3 +78,12 @@ ptptracking:
|
|||||||
simulated: false
|
simulated: false
|
||||||
holdover_seconds: 15
|
holdover_seconds: 15
|
||||||
poll_freq_seconds: 2
|
poll_freq_seconds: 2
|
||||||
|
gnss:
|
||||||
|
holdover_seconds: 15
|
||||||
|
poll_freq_seconds: 2
|
||||||
|
osclock:
|
||||||
|
holdover_seconds: 15
|
||||||
|
poll_freq_seconds: 2
|
||||||
|
overall:
|
||||||
|
holdover_seconds: 15
|
||||||
|
poll_freq_seconds: 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user