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

Implement grpc env-set and env-unset #213

Merged
merged 6 commits into from
Jul 19, 2017
Merged

Conversation

aguerra
Copy link
Contributor

@aguerra aguerra commented Jul 17, 2017

Proper logging (possibly using middleware) and adding context to errors will be done in the next PR's.


This change is Reviewable

@@ -218,6 +225,103 @@ func (ops *AppOperations) Get(appName string) (*App, error) {
return a, nil
}

func (ops *AppOperations) appInstance(user *storage.User, appName string) (*App, error) {
team, err := ops.kops.NamespaceLabel(appName, TeresaTeamLabel)
Copy link
Contributor

Choose a reason for hiding this comment

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

AppOperations has method ops.TeamName

return nil, auth.ErrPermissionDenied
}

an, err := ops.kops.NamespaceAnnotation(appName, TeresaAnnotation)
Copy link
Contributor

Choose a reason for hiding this comment

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

for this line until 247, you should change to app, err := ops.Get(appName).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh boy 👍

Copy link
Contributor

@drgarcia1986 drgarcia1986 left a comment

Choose a reason for hiding this comment

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

LGTM

@drgarcia1986 drgarcia1986 mentioned this pull request Jul 18, 2017
26 tasks
@drgarcia1986 drgarcia1986 merged commit c4b268d into master Jul 19, 2017
@drgarcia1986 drgarcia1986 deleted the ag-grpc-app-setenv branch July 19, 2017 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants