Skip to content

Commit

Permalink
Add a log to see image name, remove -o yaml from DumpGetPods
Browse files Browse the repository at this point in the history
  • Loading branch information
akondur committed Mar 14, 2024
1 parent 99affbd commit d508bb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion test/testenv/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d508bb4

Please sign in to comment.