Douglas Henrique Koerich 297584e7b9 Fix bad path for PTP configuration files
The PTP tracking container ("notificationservice-base") used hard-coded
path in the reference to ptp4l, phc2sys and ts2phc configuration files,
which led to bad initialization in a Debian environment (regardless the
container is CentOS-based, since the path is mapped to the host).
This change tests for the correct path, either in ./linuxptp/ptpinstance
(Debian) or ./ptpinstance (CentOS).
It also fixes an issue when there is no PHC interface defined, neither
in the command line or in the phc2sys configuration file.

BONUS: The logging helper of location service was fixed to properly log
the messages like done already for the other images (notification server
and client). Logging level can now be set also for this container.

Test Plan:
PASS: Built and tested new image for notificationservice-base.

Closes-Bug: #1994192
Signed-off-by: Douglas Henrique Koerich <douglashenrique.koerich@windriver.com>
Change-Id: I7be15b19b9a165a47e12c38deb9eed2b5b7d09ee
2022-10-28 11:10:45 -03:00

88 lines
1.9 KiB
YAML

#
# Copyright (c) 2021 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
# Default values for notification services.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
# global vars for parent and subcharts.
# registration.endpoint.host: registration.{namespace}.svc.{cluster-domain}
replicaCount: 1
nameOverride: ""
fullnameOverride: ""
global:
namespace: notification
registration:
imagePullSecrets: default-registry-key
image:
repository: rabbitmq
tag: 3.8.11-management
pullPolicy: IfNotPresent
endpoint:
host: "registration.notification.svc.cluster.local"
port: 5672
user: admin
pass: admin
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: ptp-registration
operator: In
values:
- "true"
notification:
image:
repository: rabbitmq
tag: 3.8.11-management
endpoint:
port: 5672
user: admin
pass: admin
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: ptp-notification
operator: In
values:
- "true"
location:
log_level: INFO
image:
repository: starlingx/locationservice-base
tag: stx.5.0-v1.0.1
pullPolicy: IfNotPresent
ptptracking:
imagePullSecrets: default-registry-key
ptp4lSocket: /var/run/ptp4l-ptp4l-legacy
ptp4lServiceName: True
phc2sysServiceName: True
ts2phcServiceName: True
log_level: INFO
image:
repository: starlingx/notificationservice-base
tag: stx.8.0-v2.0.0
pullPolicy: IfNotPresent
control_timeout: 2
device:
simulated: false
holdover_seconds: 15
osclock:
holdover_seconds: 15
overall:
holdover_seconds: 15