Skip to content

RBAC Migration Followup #14: Fix bootstrap conversion functions #15827

Closed

Description

@enj

Fix panics() in Convert...OrDie() functions

Activity

  1. modified the milestone: on Aug 17, 2017
  2. added
    help wanted
    on Aug 22, 2017
  3. tiran commented on Aug 23, 2017

    @tiran
    Contributor

    This ticket looks simple. But it is unclear to me, how a proper fix should look like.

  4. assigned and unassigned on Aug 23, 2017
  5. removed
    help wanted
    on Aug 23, 2017
  6. enj commented on Aug 23, 2017

    @enj
    ContributorAuthor

    @tiran

    For this I would expect:

    1. All panics to be removed with a useful error message and callers updated
    2. Trace the uses of these funcs and see if it is possible for us to use RBAC objects directly instead
    3. If these funcs cannot be removed, open an issue to revisit them in 3.8
  7. tiran commented on Aug 24, 2017

    @tiran
    Contributor
    1. is easy, see PR bootstrap policy: replace panic with error #15952
    2. takes a bit more effort because I'm not familiar with the API

    ConvertToOriginClusterRoles() is used by ReconcileClusterRolesOptions ChangedClusterRoles() which is used by pkg/diagnostics/cluster and oc adm policy reconcile-cluster-roles CLI.

    ConvertToOriginClusterRoleBindings has similar callers and is used in cluster diagnostics and oc adm policy reconcile-cluster-role-bindings.

    The diagnostic calls use only Name and Subject attributes. I'll try to convert the calls first.

  8. added 2 commits that reference this issue on Aug 29, 2017
    734e9d8
    904252a
  9. added a commit that references this issue on Sep 11, 2017
    a8d8faf
  10. added 2 commits that reference this issue on Sep 20, 2017
    b8bd009
    85030a3
  11. added a commit that references this issue on Sep 21, 2017
    8602aca
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