Skip to content

Commit

Permalink
remove debug lines and rely on sleeps, should evaluate operator deplo…
Browse files Browse the repository at this point in the history
…yment rollout instead

Signed-off-by: pjuarezd <[email protected]>
  • Loading branch information
pjuarezd committed Jul 17, 2024
1 parent bf32d79 commit 63e94a0
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions testing/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -572,13 +572,12 @@ function install_operator() {
echo "Installing Current Operator with sts enabled"
try kubectl apply -k "${SCRIPT_DIR}/../testing/sts/operator"
try kubectl -n minio-operator set env deployment/minio-operator OPERATOR_SIDECAR_IMAGE="$SIDECAR_TAG"
echo "key, value for pod selector in kustomize test"
try kubectl -n minio-operator rollout status deployment/minio-operator
key=name
value=minio-operator
elif [ "$1" = "certmanager" ]; then
echo "Installing Current Operator with certmanager"
try kubectl apply -k "${SCRIPT_DIR}/../testing/certmanager/operator"
echo "key, value for pod selector in kustomize test"
key=name
value=minio-operator
else
Expand All @@ -596,18 +595,12 @@ function install_operator() {
# and then we change the images, no need to have more overlays in different folders.
try kubectl -n minio-operator set image deployment/minio-operator minio-operator="$TAG"
try kubectl -n minio-operator set env deployment/minio-operator OPERATOR_SIDECAR_IMAGE="$SIDECAR_TAG"

try kubectl -n minio-operator rollout status deployment/minio-operator

echo "key, value for pod selector in kustomize test"
key=name
value=minio-operator
fi

# Reusing the wait for both, Kustomize and Helm
echo "Waiting for k8s api"
sleep 10

kubectl get ns

kubectl -n minio-operator get deployments
Expand Down Expand Up @@ -692,11 +685,8 @@ function check_tenant_status() {
key=v1.min.io/tenant
value=$2
if [ $# -ge 3 ]; then
echo "Third argument provided, then set key value"
key=app
value=$3
else
echo "No third argument provided, using default key"
fi

wait_resource_status $1 Tenant $2 600
Expand Down

0 comments on commit 63e94a0

Please sign in to comment.