Skip to content

Commit

Permalink
REDIS_USERNAME -> REDIS_USER more relevant for exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
samof76 committed Sep 9, 2022
1 parent 8d9eebe commit 8667fe4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion operator/redisfailover/service/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,7 @@ func getRedisEnv(rf *redisfailoverv1.RedisFailover) []corev1.EnvVar {
})

env = append(env, corev1.EnvVar{
Name: "REDIS_USERNAME",
Name: "REDIS_USER",
Value: "default",
})

Expand Down
2 changes: 1 addition & 1 deletion test/integration/redisfailover/creation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ func (c *clients) testAuth(t *testing.T) {
assert.Equal(redisSS.Spec.Template.Spec.Containers[1].Env[1].Value, redisAddr)
assert.Equal(redisSS.Spec.Template.Spec.Containers[1].Env[2].Name, "REDIS_PORT")
assert.Equal(redisSS.Spec.Template.Spec.Containers[1].Env[2].Value, "6379")
assert.Equal(redisSS.Spec.Template.Spec.Containers[1].Env[3].Name, "REDIS_USERNAME")
assert.Equal(redisSS.Spec.Template.Spec.Containers[1].Env[3].Name, "REDIS_USER")
assert.Equal(redisSS.Spec.Template.Spec.Containers[1].Env[3].Value, "default")
assert.Equal(redisSS.Spec.Template.Spec.Containers[1].Env[4].Name, "REDIS_PASSWORD")
assert.Equal(redisSS.Spec.Template.Spec.Containers[1].Env[4].ValueFrom.SecretKeyRef.Key, "password")
Expand Down

0 comments on commit 8667fe4

Please sign in to comment.