X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=helm%2Falarmadapter%2Ftemplates%2Fdeployment.yaml;h=47e8e66e643460efc5aa54d08f86295d2d18e1ec;hb=f9c36363b7c9cf8063278f656d392fe47c969418;hp=4a9870d54009f52db70dd7a65c9e49d79a3ea6c8;hpb=393136323474cc68318eda4a674d91cc6aca0ffc;p=ric-plt%2Fric-dep.git diff --git a/helm/alarmadapter/templates/deployment.yaml b/helm/alarmadapter/templates/deployment.yaml index 4a9870d..47e8e66 100644 --- a/helm/alarmadapter/templates/deployment.yaml +++ b/helm/alarmadapter/templates/deployment.yaml @@ -49,16 +49,19 @@ spec: - name: {{ include "common.containername.alarmadapter" . }} image: {{ include "common.dockerregistry.url" $imagectx }}/{{ .Values.alarmadapter.image.name }}:{{ .Values.alarmadapter.image.tag }} imagePullPolicy: {{ include "common.dockerregistry.pullpolicy" $pullpolicyctx }} - command: ["/run_adapter.sh"] #command: ["/bin/sh"] #args: ["-c", "while true; do echo hello; sleep 10;done"] + command: ["/bin/sh"] + args: ["-c", "/alarm-adapter -f /alarmadaptercfg/config-file.json"] envFrom: - configMapRef: name: {{ include "common.configmapname.alarmadapter" . }}-env + - configMapRef: + name: {{ include "common.configmapname.dbaas" . }}-appconfig volumeMounts: - - mountPath: /cfg - name: config-volume - readOnly: true + - mountPath: /alarmadaptercfg + name: appconfig-file + subpath: config-file.json ports: - name: "http" containerPort: {{ include "common.serviceport.alarmadapter.http" . }} @@ -67,10 +70,6 @@ spec: - name: "rmrdata" containerPort: {{ include "common.serviceport.alarmadapter.rmr.data" . }} volumes: - - name: config-volume + - name: appconfig-file configMap: - name: alarmadaptercfg - items: - - key: alarmadaptercfg - path: alarmadapter-config.yaml - mode: 0644 + name: {{ include "common.configmapname.alarmadapter" . }}-appconfig