Skip to content

Conversation

@Vafilor
Copy link
Contributor

@Vafilor Vafilor commented Jun 11, 2020

What this PR does:

Removes the authorization endpoint for workspaces and puts that logic into the single IsAuthorized endpoint.

Which issue(s) this PR fixes:

Fixes #266

Special notes for your reviewer:

Also see the Manifests PR that removes fqdn from headers.

pkg/config.go Outdated
namespace := "onepanel"
configMap, err := c.getConfigMap(namespace, "onepanel")
if err != nil {
configMap, configMapErr := c.getConfigMap(namespace, "onepanel")
Copy link
Contributor

Choose a reason for hiding this comment

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

why not just use err?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Originally I got an err shadowed compilation error.
But I'm not getting it now - pushing up a fix.

@rushtehrani rushtehrani merged commit 9af50d3 into dev Jun 11, 2020
@rushtehrani rushtehrani deleted the feat/authorization.updates branch June 11, 2020 06:02
@rushtehrani rushtehrani added this to the v0.11.0 milestone Jun 11, 2020
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.

3 participants