Skip to content

Commit

Permalink
Fix check for secret existence in management namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
szwedm committed Dec 30, 2024
1 parent 30eb792 commit 98d399d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/testing/run_e2e_sap_btp_manager_secret_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ do
echo "timed out after ${TIMEOUT}s" && exit 1
fi
if ! ${SAP_BTP_OPERATOR_SECRET_CHANGED}; then
if ! kubectl get secret -n ${MANAGEMENT_NAMESPACE} ${SAP_BTP_OPERATOR_SECRET_NAME}; then
if [[ $(kubectl get secret -n ${MANAGEMENT_NAMESPACE} ${SAP_BTP_OPERATOR_SECRET_NAME}) -eq 0 ]]; then
echo "${SAP_BTP_OPERATOR_SECRET_NAME} secret exists in ${MANAGEMENT_NAMESPACE} namespace"
SAP_BTP_OPERATOR_SECRET_CHANGED=true
fi
Expand Down

0 comments on commit 98d399d

Please sign in to comment.