Skip to content

RBAC Migration Followup #10: Fix router ignore error #15822

Closed

Description

@enj

Fix ignoreError in pkg/oc/admin/router/router.go

Activity

  1. modified the milestone: on Aug 17, 2017
  2. mrogers950 commented on Aug 21, 2017

    @mrogers950

    @enj it looks like you're referring to correcting the 'Temp fix for test/cmd/router.sh' part of 806d7be. What are we looking for in a permanent fix here?

  3. mrogers950 commented on Aug 22, 2017

    @mrogers950

    Removing the added check for details.Kind == "clusterrolebindings" does not cause test/cmd/router.sh to fail in any obvious way, so perhaps this fix is not needed anymore.

  4. self-assigned this
    on Aug 22, 2017
  5. enj commented on Aug 22, 2017

    @enj
    ContributorAuthor

    @mrogers950 yeah I was hoping that reverting back the original code

    return (details.Kind == "serviceaccounts" && details.Name == saName) ||
    (details.Kind == "clusterrolebinding" && details.Name == roleBindingName)

    would work since I had done a lot of work to make the proxy give the "correct" error.

    I am fine with that as a fix, but see if you can figure out what ignoring that error actually means and add some docs around it in the code.

  6. mrogers950 commented on Aug 22, 2017

    @mrogers950

    The ignoreError functionality was added for https://bugzilla.redhat.com/show_bug.cgi?id=1332432 via #11639. I'll clarify the comments and also revert the original code.

  7. added a commit that references this issue on Aug 24, 2017
    6c23373
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions