Skip to content
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

gcloud-auth-cluster: Create unique name for cluster role binding #662

Closed
markmandel opened this issue Mar 17, 2019 · 1 comment · Fixed by #666
Closed

gcloud-auth-cluster: Create unique name for cluster role binding #662

markmandel opened this issue Mar 17, 2019 · 1 comment · Fixed by #666
Labels
area/build-tools Development tooling. I.e. pretty much everything in the `build` directory. good first issue These are great first issues. If you are looking for a place to start, start here! help wanted We would love help on these issues. Please come help us! kind/cleanup Refactoring code, fixing up documentation, etc
Milestone

Comments

@markmandel
Copy link
Member

In theory, the cluster role binding name that we hard code could already exist (maybe someone else set up the cluster by hand).

I think it would be nice to take a short hash of the user's account name (or any other relatively unique identifier), and incorporate that into the name of the cluster role binding in gcloud-auth-cluster

@markmandel markmandel added kind/cleanup Refactoring code, fixing up documentation, etc area/build-tools Development tooling. I.e. pretty much everything in the `build` directory. help wanted We would love help on these issues. Please come help us! good first issue These are great first issues. If you are looking for a place to start, start here! labels Mar 17, 2019
@aLekSer
Copy link
Collaborator

aLekSer commented Mar 18, 2019

I am thinking of something cross-platform like this hash:

accountHash := $(shell echo - n $$(gcloud config get-value account) | openssl md5)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build-tools Development tooling. I.e. pretty much everything in the `build` directory. good first issue These are great first issues. If you are looking for a place to start, start here! help wanted We would love help on these issues. Please come help us! kind/cleanup Refactoring code, fixing up documentation, etc
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants