From d508bb47d5f6a50f4702a15924f2f9dd460a3b0d Mon Sep 17 00:00:00 2001 From: Arjun Kondur Date: Thu, 14 Mar 2024 11:42:51 -0500 Subject: [PATCH] Add a log to see image name, remove -o yaml from DumpGetPods --- test/run-tests.sh | 1 + test/testenv/util.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/test/run-tests.sh b/test/run-tests.sh index 5f7a4774c..6cf3ba9b2 100755 --- a/test/run-tests.sh +++ b/test/run-tests.sh @@ -33,6 +33,7 @@ else echo "Installing enterprise splunk image from ${SPLUNK_ENTERPRISE_IMAGE_GRAVITON}..." make deploy IMAGE_TAG_BASE=docker.io/splunk/splunk-operator IMG=${PRIVATE_SPLUNK_OPERATOR_IMAGE} SPLUNK_ENTERPRISE_IMAGE=${PRIVATE_SPLUNK_ENTERPRISE_IMAGE} WATCH_NAMESPACE="" sleep 30; kubectl describe pod -n splunk-operator + echo "Displaying the value of SPLUNK_ENTERPRISE_IMAGE_GRAVITON" sleep 15; echo ${SPLUNK_ENTERPRISE_IMAGE_GRAVITON} > ~/tmp_aj; cat ~/tmp_aj; fi diff --git a/test/testenv/util.go b/test/testenv/util.go index 5d90be523..a12dbd174 100644 --- a/test/testenv/util.go +++ b/test/testenv/util.go @@ -720,7 +720,7 @@ func newMonitoringConsoleSpecWithGivenSpec(name string, ns string, spec enterpri // DumpGetPods prints and returns list of pods in the namespace func DumpGetPods(ns string) []string { - output, err := exec.Command("kubectl", "get", "pods", "-o", "yaml", "-n", ns).Output() + output, err := exec.Command("kubectl", "get", "pods", "-n", ns).Output() var splunkPods []string if err != nil { //cmd := fmt.Sprintf("kubectl get pods -n %s", ns)