-
Notifications
You must be signed in to change notification settings - Fork 159
Fixed project setup scripts #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
2eaa61b
to
4e7b051
Compare
deploy/setup-project.sh
Outdated
IAM_NAME="$GCEPD_SA_NAME@$PROJECT.iam.gserviceaccount.com" | ||
|
||
# Cleanup old Service Account and Key | ||
rm -f $SA_FILE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more recommendation I found was to put quotes around all variables, to handle things like spaces in filenames
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
4e7b051
to
84fad45
Compare
test/run-tests.sh
Outdated
readonly PKGDIR=github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver | ||
|
||
go test -timeout 30s ${PKGDIR}/test/sanity/ -run ^TestSanity$ | ||
go run $GOPATH/src/${PKGDIR}/test/remote/run_remote/run_remote.go --logtostderr --v 2 --project "${PROJECT}" --zone "${ZONE}" --ssh-env gce --delete-instances=false --cleanup=false --results-dir=my_test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
quotes here too :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done :)
84fad45
to
f148d7a
Compare
/lgtm |
Added some cleanup to project setup scripts, corrected role and added TODO for IAM scope reduction.
/assign @msau42
Feel free to use updated scripts for yourself too