From 0ed16a979713b0e1ae60fe4518e99fa5968143cc Mon Sep 17 00:00:00 2001 From: "aravind.est" Date: Mon, 18 Aug 2025 15:16:12 +0100 Subject: [PATCH] rAppmanager : init script added to Wait for servicemanager Init script added to wait for service manager Issue-ID: NONRTRIC-1082 Change-Id: I2fac889b3ffa45a3b8583cbe65ec97c127ef8a55 Signed-off-by: aravind.est --- smo-install/oran_oom/rappmanager/templates/statefulset.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/smo-install/oran_oom/rappmanager/templates/statefulset.yaml b/smo-install/oran_oom/rappmanager/templates/statefulset.yaml index cc082022..04ea5ead 100644 --- a/smo-install/oran_oom/rappmanager/templates/statefulset.yaml +++ b/smo-install/oran_oom/rappmanager/templates/statefulset.yaml @@ -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 }} -- 2.16.6