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
create rolebinding within namespace to guarantee permission #680
Conversation
/assign @jlewi |
@@ -201,6 +205,19 @@ func Run(opt *options.ServerOption) error { | |||
return err | |||
} | |||
|
|||
log.Infof("create rolebinding kubeflow-admin for role permission") |
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.
Any particular reason we're shelling out to kubectl rather than using the goclient to make a request to the API?
@@ -201,6 +205,19 @@ func Run(opt *options.ServerOption) error { | |||
return err | |||
} | |||
|
|||
log.Infof("create rolebinding kubeflow-admin for role permission") | |||
user, err := exec.Command("gcloud", "config", "get-value", "account").Output() |
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.
We shouldn't be running gcloud commands unless we are using GKE. You can use the isGke function to check.
/assign @ankushagarwal |
/retest |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ankushagarwal 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 |
…#680) * create rolebinding within namespace to guarantee permission * Check if kubernetes on GKE before create rolebinding, and update README
This change is