diff --git a/cmd/role.go b/cmd/role.go index 35c556f..5b7cc51 100644 --- a/cmd/role.go +++ b/cmd/role.go @@ -115,7 +115,7 @@ var AddRoleCmd = &cobra.Command{ if tag != "" { roleData.Resource.Tag = tag } - case "ingester": + case "ingestor": roleData.Resource = &RoleResource{ Stream: stream, } diff --git a/pkg/model/role/role.go b/pkg/model/role/role.go index fd7c6d5..0949c7f 100644 --- a/pkg/model/role/role.go +++ b/pkg/model/role/role.go @@ -28,7 +28,7 @@ import ( ) var ( - privileges = []string{"none", "admin", "editor", "writer", "reader", "ingester"} + privileges = []string{"none", "admin", "editor", "writer", "reader", "ingestor"} navigationMapStreamTag = []string{"role", "stream", "tag", "button"} navigationMapStream = []string{"role", "stream", "button"} navigationMap = []string{"role", "button"} @@ -64,7 +64,7 @@ func (m *Model) Valid() bool { switch m.Selection.Value() { case "admin", "editor", "none": return true - case "writer", "reader", "ingester": + case "writer", "reader", "ingestor": return !(strings.Contains(m.Stream.Value(), " ") || m.Stream.Value() == "") } return true @@ -175,7 +175,7 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { m.navMap = &navigationMapStream case "reader": m.navMap = &navigationMapStreamTag - case "ingester": + case "ingestor": m.navMap = &navigationMapStream default: m.navMap = &navigationMapNone