Skip to content

Commit

Permalink
Show operator logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ramondeklein committed Oct 17, 2024
1 parent 77fad77 commit 20780cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions shared-functions/shared-code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ function wait_for_resource() {
echo $command_to_wait

while true; do
echo Operator log:
kubectl logs -n minio-operator --prefix -l app.kubernetes.io/name=operator
echo
echo Pods:
kubectl -n $1 get pods -l $3=$2 --no-headers
waitdone=$($command_to_wait | wc -l)
if [ "$waitdone" -ne 0 ]; then
echo "Found $waitdone pods"
Expand Down

0 comments on commit 20780cb

Please sign in to comment.