From 80eb6e455fb7cff4186b36e49ef05819dc160bf6 Mon Sep 17 00:00:00 2001 From: Daniel Hoherd Date: Mon, 12 Feb 2024 15:44:48 -0500 Subject: [PATCH] Work around kibana-default-index false positive (#2128) --- bin/waitfor-platform | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/waitfor-platform b/bin/waitfor-platform index b15cd10b3..e584f7f0c 100755 --- a/bin/waitfor-platform +++ b/bin/waitfor-platform @@ -32,7 +32,11 @@ while [ "${RC:-0}" -eq 0 ]; do # of logging tag without the platform. This is the only logging component # that will not start without the platform. The benefit of allowing us to # test the logging tag outweighs the downside of ignoring one pod. - grep -q -vE 'NAME|Completed|elasticsearch-nginx| ([0-9]+)/\1 ' /tmp/pods + # + # Also ignore kibana-default-index because it leaves behind failed pods if + # it doesn't succeed on the first try, which falsely make it seem like the + # job failed. https://github.com/astronomer/issues/issues/6158 + grep -vE 'NAME|Completed|elasticsearch-nginx|kibana-default-index| ([0-9]+)/\1 ' /tmp/pods RC=$? fi done