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

create rolebinding within namespace to guarantee permission #680

Merged
merged 2 commits into from Apr 19, 2018

Conversation

kunmingg
Copy link
Contributor

@kunmingg kunmingg commented Apr 19, 2018

This change is Reviewable

@kunmingg
Copy link
Contributor Author

/assign @jlewi

@@ -201,6 +205,19 @@ func Run(opt *options.ServerOption) error {
return err
}

log.Infof("create rolebinding kubeflow-admin for role permission")
Copy link
Contributor

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

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.

@kunmingg
Copy link
Contributor Author

/assign @ankushagarwal

@kunmingg
Copy link
Contributor Author

/retest

@ankushagarwal
Copy link
Contributor

/lgtm

@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 94e8803 into kubeflow:master Apr 19, 2018
saffaalvi pushed a commit to StatCan/kubeflow that referenced this pull request Feb 11, 2021
…#680)

* create rolebinding within namespace to guarantee permission

* Check if kubernetes on GKE before create rolebinding, and update README
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants