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 9cab4fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions resources/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ spec:
- name: minio-operator
image: minio/operator:v6.0.4
imagePullPolicy: IfNotPresent
restartPolicy: Never
args:
- controller
resources:
Expand Down
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 9cab4fe

Please sign in to comment.