Skip to content

Commit

Permalink
renamed ingester to ingestor (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilsinhaparseable authored Jun 7, 2024
1 parent bc533ef commit eb5cc9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/role.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ var AddRoleCmd = &cobra.Command{
if tag != "" {
roleData.Resource.Tag = tag
}
case "ingester":
case "ingestor":
roleData.Resource = &RoleResource{
Stream: stream,
}
Expand Down
6 changes: 3 additions & 3 deletions pkg/model/role/role.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit eb5cc9d

Please sign in to comment.