Skip to content

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

Merged
merged 1 commit into from
Jun 20, 2018

Conversation

davidz627
Copy link
Contributor

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

@k8s-ci-robot k8s-ci-robot requested a review from saad-ali June 18, 2018 23:57
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jun 18, 2018
IAM_NAME="$GCEPD_SA_NAME@$PROJECT.iam.gserviceaccount.com"

# Cleanup old Service Account and Key
rm -f $SA_FILE
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

quotes here too :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done :)

@msau42
Copy link
Contributor

msau42 commented Jun 20, 2018

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 20, 2018
@davidz627 davidz627 merged commit 8dc5223 into kubernetes-sigs:master Jun 20, 2018
@davidz627 davidz627 deleted the fix/projectSetup branch June 20, 2018 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants