Skip to content

Commit

Permalink
feat(redis): Add KeyDB support
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Mar 28, 2024
1 parent d682794 commit 7a603dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/database/redis/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ func (db Redis) PodFilters() filter.Filter {
filter.Label{Name: "app", Value: "redis"},
filter.Label{Name: "role", Value: "master"},
},
filter.Label{Name: "app.kubernetes.io/component", Value: "keydb"},
}
}

Expand Down Expand Up @@ -103,7 +104,7 @@ func (db Redis) FilterPods(ctx context.Context, client kubernetes.KubeClient, po

func (db Redis) PasswordEnvNames(_ config.Global) kubernetes.ConfigLookups {
return kubernetes.ConfigLookups{
kubernetes.LookupEnv{"REDIS_PASSWORD"},
kubernetes.LookupEnv{"REDIS_PASSWORD", "KEYDB_PASSWORD"},
}
}

Expand Down

0 comments on commit 7a603dc

Please sign in to comment.