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 ca87c13 commit eb5c1e6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions shared-functions/shared-code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ function wait_for_resource() {
echo $command_to_wait

while true; do
echo Operator log:
kubectl get pods -n minio-operator -l app.kubernetes.io/name=operator
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 eb5c1e6

Please sign in to comment.