rAppmanager : init script added to Wait for servicemanager 20/14820/4
authoraravind.est <aravindhan.a@est.tech>
Mon, 18 Aug 2025 14:16:12 +0000 (15:16 +0100)
committerAravindhan Ayyanathan <aravindhan.a@est.tech>
Mon, 25 Aug 2025 14:05:43 +0000 (14:05 +0000)
Init script added to wait for service manager

Issue-ID: NONRTRIC-1082
Change-Id: I2fac889b3ffa45a3b8583cbe65ec97c127ef8a55
Signed-off-by: aravind.est <aravindhan.a@est.tech>
smo-install/oran_oom/rappmanager/templates/statefulset.yaml

index cc08202..04ea5ea 100644 (file)
@@ -1,5 +1,5 @@
 #  ============LICENSE_START===============================================
-#  Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved.
+#  Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved.
 #  ========================================================================
 #  Licensed under the Apache License, Version 2.0 (the "License");
 #  you may not use this file except in compliance with the License.
@@ -26,6 +26,10 @@ spec:
     metadata: {{- include "common.templateMetadata" . | nindent 6 }}
     spec:
       hostname: {{ include "common.name" . }}
+      initContainers:
+      - name: wait-for-servicemanager
+        image: alpine:latest
+        command: ['sh', '-c', 'apk add --no-cache netcat-openbsd && nc -zv servicemanager 8095']
       containers:
       - name: {{ include "common.containername" . }}
         image: {{ .Values.image.registry }}/{{ .Values.image.name }}:{{ .Values.image.tag }}