Skip to content

Commit

Permalink
only remove admin-mc pod when is created
Browse files Browse the repository at this point in the history
Signed-off-by: pjuarezd <[email protected]>
  • Loading branch information
pjuarezd committed Jul 5, 2024
1 parent 4089b31 commit c5da103
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions testing/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -758,6 +758,10 @@ function check_tenant_status() {

# Retrieve the logs
kubectl logs admin-mc -n tenant-certmanager

echo "removing the admin-mc pod"
try kubectl delete pod admin-mc

else
try kubectl run --restart=Never admin-mc --image quay.io/minio/mc \
--env="MC_HOST_minio=https://${USER}:${PASSWORD}@minio.${1}.svc.cluster.local" \
Expand All @@ -768,10 +772,11 @@ function check_tenant_status() {

# Retrieve the logs
kubectl logs admin-mc
fi

echo "removing the admin-mc pod"
try kubectl delete pod admin-mc
echo "removing the admin-mc pod"
try kubectl delete pod admin-mc

fi

echo "Done."
}
Expand Down

0 comments on commit c5da103

Please sign in to comment.