Skip to content

Commit

Permalink
add display attributes necessary to create kubernetes roles in the ui (
Browse files Browse the repository at this point in the history
  • Loading branch information
Noelle Daley authored and jasonodonnell committed Dec 3, 2019
1 parent c59da59 commit f4ed471
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions path_role.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ func pathsRole(b *kubeAuthBackend) []*framework.Path {
},
HelpSynopsis: strings.TrimSpace(roleHelp["role-list"][0]),
HelpDescription: strings.TrimSpace(roleHelp["role-list"][1]),
DisplayAttrs: &framework.DisplayAttributes{
Navigation: true,
ItemType: "Role",
},
},
&framework.Path{
Pattern: "role/" + framework.GenericNameRegex("name"),
Expand Down Expand Up @@ -85,6 +89,10 @@ are allowed, both this and bound_service_account_names can not be set to "*"`,
},
HelpSynopsis: strings.TrimSpace(roleHelp["role"][0]),
HelpDescription: strings.TrimSpace(roleHelp["role"][1]),
DisplayAttrs: &framework.DisplayAttributes{
ItemType: "Role",
Action: "Create",
},
},
}

Expand Down

0 comments on commit f4ed471

Please sign in to comment.