From b619676a1b44f7a806ae4c60f357d50849d3cae1 Mon Sep 17 00:00:00 2001 From: Maximiliano Osorio Date: Fri, 6 Sep 2024 13:16:56 -0400 Subject: [PATCH] fix: add changes --- charts/mint/templates/model-catalog.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/charts/mint/templates/model-catalog.yaml b/charts/mint/templates/model-catalog.yaml index 55427a4..0c9f6cb 100644 --- a/charts/mint/templates/model-catalog.yaml +++ b/charts/mint/templates/model-catalog.yaml @@ -45,6 +45,12 @@ spec: {{- end }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} + initContainers: + - name: wait-for-model-catalog-endpoint + image: alpine/curl + command: ["sh", "-c", "until curl -sk {{ include "mint.prefix" . }}-model-catalog-endpoint:3030/$/modelcatalog/ping; do echo waiting for model-catalog-endpoint; sleep 2; done"] + resources: + {{- toYaml .Values.resources | nindent 12 }} containers: - name: model-catalog {{- with .Values.components.model_catalog_api }}