Commit 03a74fb8 authored by Yann Garcia's avatar Yann Garcia
Browse files

Add IoT subscriptions

parent 2ff16e0f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ spec:
          ports:
            - containerPort: {{ .Values.deployment.port }}
              protocol: {{ .Values.deployment.protocol }}
            - containerPort: 33122
            - containerPort: 31122
              protocol: TCP
          env:
            {{- range $key, $value := .Values.image.env }}
+2 −2
Original line number Diff line number Diff line
@@ -21,8 +21,8 @@ spec:
      nodePort: {{ .Values.service.nodePort }}
      {{- end }}
    - name: onem2m
      port: 33122
      targetPort: 33122
      port: 31122
      targetPort: 31122
    {{- if .Values.prometheus.monitor.enabled}}
    - name: metrics
      port: {{ .Values.prometheus.monitor.port }}
+2 −2
Original line number Diff line number Diff line
@@ -52,12 +52,12 @@ ingress:
        - path: /{{.SandboxName}}/{{.MepName}}/sens
          port: 80
        - path: /{{.SandboxName}}/{{.MepName}}/onem2m
          port: 33122
          port: 31122
        {{- else }}
        - path: /{{.SandboxName}}/sens
          port: 80
        - path: /{{.SandboxName}}/onem2m
          port: 33122
          port: 31122
        {{- end }}
  annotations:
    kubernetes.io/ingress.class: nginx
+1 −1
Original line number Diff line number Diff line
@@ -22,6 +22,6 @@ RUN chmod +x /entrypoint.sh

RUN dpkg --configure -a

EXPOSE 33122/tcp
EXPOSE 31122/tcp

ENTRYPOINT ["/entrypoint.sh"]
+6 −6
Original line number Diff line number Diff line
@@ -65,9 +65,9 @@ type SbiCfg struct {
	Port            int
	HostId          string
	Name            string
	DiscoveryNotify func()
	StatusNotify    func()
	DataNotify      func()
	DiscoveryNotify func(map[string]interface{})
	StatusNotify    func(map[string]interface{})
	DataNotify      func(map[string]interface{})
	ScenarioNameCb  func(string)
	CleanUpCb       func()
}
@@ -89,9 +89,9 @@ type SssSbi struct {
	port                 int
	hostId               string
	name                 string
	discoveryNotify      func()
	statusNotify         func()
	dataNotify           func()
	discoveryNotify      func(map[string]interface{})
	statusNotify         func(map[string]interface{})
	dataNotify           func(map[string]interface{})
	updateScenarioNameCB func(string)
	cleanUpCB            func()
	mutex                sync.Mutex
Loading