From b219bc6f2b00d9d2a039b5ab8c41066f06422a1d Mon Sep 17 00:00:00 2001 From: Bartek Grzybowski Date: Wed, 6 Apr 2022 12:04:54 +0200 Subject: [BUILD] Improve helm template output In Jakarta a ConfigMap object has been added in dcaemod chart that contains a raw helm chart definition with templated "image" value that should not be parsed by the script to avoid vague output. Change-Id: I6ea7e1e163a704f66aea59d44a09ff330fdc86bc Issue-ID: OOM-2948 Signed-off-by: Bartek Grzybowski --- build/creating_data/docker-images-collector.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/creating_data/docker-images-collector.sh b/build/creating_data/docker-images-collector.sh index 25e9ed47..5ce2e3f7 100755 --- a/build/creating_data/docker-images-collector.sh +++ b/build/creating_data/docker-images-collector.sh @@ -65,7 +65,7 @@ create_list() { else >&2 echo -e \n" !!! ${1} sybsystem does not exist !!!"\n fi - ${HELM_BIN} template --set global.masterPassword=TemplatePassword,global.offlineDeploymentBuild=true,global.importCustomCertsEnabled=true -f ${PROJECT_DIR}/values.yaml "${SUBSYS_DIR}" | grep 'image:\ \|tag_version:\ \|h._image' | + ${HELM_BIN} template --set global.masterPassword=TemplatePassword,global.offlineDeploymentBuild=true,global.importCustomCertsEnabled=true -f ${PROJECT_DIR}/values.yaml "${SUBSYS_DIR}" | grep 'image:\ \|tag_version:\ \|h._image' | grep -v "image: TBD" | sed -e 's/^.*\"h._image\"\ :\ //; s/^.*\"\(.*\)\".*$/\1/' \ -e 's/\x27\|,//g; s/^.*\(image\|tag_version\):\ //' | tr -d '\r' } -- cgit 1.2.3-korg