Skip to content

Commit

Permalink
test: add default namespace in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx committed Aug 16, 2024
1 parent 14dde47 commit 6865eea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ create-metrics-svc:

.PHONY: install-smb-provisioner
install-smb-provisioner:
kubectl delete secret smbcreds --ignore-not-found
kubectl create secret generic smbcreds --from-literal azurestorageaccountname=USERNAME --from-literal azurestorageaccountkey="PASSWORD"
kubectl delete secret smbcreds -n default --ignore-not-found
kubectl create secret generic smbcreds -n default --from-literal azurestorageaccountname=USERNAME --from-literal azurestorageaccountkey="PASSWORD"
ifdef TEST_WINDOWS
kubectl apply -f deploy/example/smb-provisioner/smb-server-lb.yaml
else
Expand Down
2 changes: 1 addition & 1 deletion test/utils/get_smb_svc_public_ip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
# limitations under the License.

set -e
kubectl get svc smb-server | grep smb | awk '{print $4}'
kubectl get svc smb-server -n default | grep smb | awk '{print $4}'
2 changes: 1 addition & 1 deletion test/utils/get_storage_account_secret_name.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
# limitations under the License.

set -e
kubectl get secret | grep azure-storage-account | head -n 1 | awk '{print $1}'
kubectl get secret -n default | grep azure-storage-account | head -n 1 | awk '{print $1}'

0 comments on commit 6865eea

Please sign in to comment.