Skip to content

Commit 03bfd3f

Browse files
authored
Merge pull request #88640 from javierpena/ptp-events-v2-fixes
2 parents 465acff + 37b8bc5 commit 03bfd3f

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

modules/ptp-events-consumer-application-v2.adoc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ func getEvent(w http.ResponseWriter, req *http.Request) {
3232
if e != "" {
3333
processEvent(bodyBytes)
3434
log.Infof("received event %s", string(bodyBytes))
35-
} else {
36-
w.WriteHeader(http.StatusNoContent)
3735
}
36+
w.WriteHeader(http.StatusNoContent)
3837
}
3938
----
4039

@@ -58,7 +57,7 @@ s5,_:=createsubscription("/cluster/node/<node_name>/sync/ptp-status/clock-class"
5857
func createSubscription(resourceAddress string) (sub pubsub.PubSub, err error) {
5958
var status int
6059
apiPath := "/api/ocloudNotifications/v2/"
61-
localAPIAddr := "localhost:8989" // vDU service API address
60+
localAPIAddr := "consumer-events-subscription-service.cloud-events.svc.cluster.local:9043" // vDU service API address
6261
apiAddr := "ptp-event-publisher-service-<node_name>.openshift-ptp.svc.cluster.local:9043" // <1>
6362
apiVersion := "2.0"
6463

snippets/ptp-event-config-api-v2.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ spec:
1010
daemonNodeSelector:
1111
node-role.kubernetes.io/worker: ""
1212
ptpEventConfig:
13-
apiVersion: 2.0 <1>
13+
apiVersion: "2.0" <1>
1414
enableEventPublisher: true <2>
1515
----
16-
<1> Enable the PTP events REST API v2 for the PTP event producer by setting the `ptpEventConfig.apiVersion` to 2.0.
17-
The default value is 1.0.
16+
<1> Enable the PTP events REST API v2 for the PTP event producer by setting the `ptpEventConfig.apiVersion` to "2.0".
17+
The default value is "1.0".
1818
<2> Enable PTP fast event notifications by setting `enableEventPublisher` to `true`.

0 commit comments

Comments
 (0)