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

Webapp: Don't use DM for IAM. #1550

Merged
merged 3 commits into from Sep 18, 2018
Merged

Webapp: Don't use DM for IAM. #1550

merged 3 commits into from Sep 18, 2018

Conversation

lluunn
Copy link
Contributor

@lluunn lluunn commented Sep 18, 2018

/cc @kunmingg

iam_bindings_template.yaml is the same as https://github.com/kubeflow/kubeflow/blob/master/scripts/gke/deployment_manager_configs/iam_bindings_template.yaml so it will be easy to merge later.

cc @jlewi


This change is Reviewable

@lluunn
Copy link
Contributor Author

lluunn commented Sep 18, 2018

/retest

}

func (s *ksServer)ApplyIamPolicy(ctx context.Context, req ApplyIamRequest) error {
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's add retry into ApplyIamPolicy.
There's a small chance that concurrent iam change might occur for same project.

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, PTAL

}).Do()
retry = 0
if retry < 5 {
_, err = resourceManager.Projects.SetIamPolicy(
Copy link
Contributor

Choose a reason for hiding this comment

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

If the failure is caused by concurrent iam policy change, we need to re-get the changed iam policy as refresh start and then apply configs to it and try to set iam again.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see, updated. Thanks

@lluunn
Copy link
Contributor Author

lluunn commented Sep 18, 2018

/retest

@kunmingg
Copy link
Contributor

/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kunmingg

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

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