We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5f80a1a + 8e02db4 commit a3f8823Copy full SHA for a3f8823
pkg/resources/configmaps/configmap.go
@@ -82,7 +82,11 @@ func generateRedisConfContent(configMap map[string]string) string {
82
sort.Strings(keys)
83
84
for _, k := range keys {
85
- buffer.WriteString(fmt.Sprintf("%s %s", k, configMap[k]))
+ v := configMap[k]
86
+ if len(v) == 0 {
87
+ continue
88
+ }
89
+ buffer.WriteString(fmt.Sprintf("%s %s", k, v))
90
buffer.WriteString("\n")
91
}
92
pkg/resources/configmaps/configmap_test.go
@@ -48,7 +48,6 @@ maxmemory 1000000000
48
maxmemory-policy noeviction
49
maxmemory-samples 5
50
no-appendfsync-on-rewrite no
51
-notify-keyspace-events
52
repl-backlog-size 1048576
53
repl-backlog-ttl 3600
54
set-max-intset-entries 512
0 commit comments