-
Notifications
You must be signed in to change notification settings - Fork 159
Improve deployment scripts, make service account JSON configurable by directory, not name #81
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: davidz627 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
deploy/setup-project.sh
Outdated
# restricted permissions to run the gcp_compute_persistent_disk_csi_driver and download | ||
# the keys to a specified directory | ||
|
||
# WARNING: This script will delete and recreate all service accounts, bindings, and keys. |
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.
ALL service accounts???
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.
ohoh thats alarming. No just the one set.
# Args: | ||
# PROJECT: GCP project | ||
# GCE_PD_SA_NAME: Name of the service account to create | ||
# GCE_PD_SA_DIR: Directory to save the service account key |
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.
Are there defaults set?
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.
Should there be defaults? I think these are all important enough that there shouldn't be any defaults. I have set -o nounset
so it throws an error if the vars are unset when the script runs
|
||
# Note: setup-cluster.yaml depends on the existence of cluster-roles | ||
# system:csi-external-attacher and system:csi-external-provisioner | ||
# which are in Kubernetes version 1.10.5+ |
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.
I would put this note in the readme right up top
Comments addressed |
/lgtm |
Fixes: #28
Added some comments to the deployment scripts. JSON is finally configurable by directory, not name.
/assign @msau42