Skip to content

Commit a3f8823

Browse files
authored
Merge pull request #31 from ucloud/v0.2.1
V0.2.1
2 parents 5f80a1a + 8e02db4 commit a3f8823

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pkg/resources/configmaps/configmap.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,11 @@ func generateRedisConfContent(configMap map[string]string) string {
8282
sort.Strings(keys)
8383

8484
for _, k := range keys {
85-
buffer.WriteString(fmt.Sprintf("%s %s", k, configMap[k]))
85+
v := configMap[k]
86+
if len(v) == 0 {
87+
continue
88+
}
89+
buffer.WriteString(fmt.Sprintf("%s %s", k, v))
8690
buffer.WriteString("\n")
8791
}
8892

pkg/resources/configmaps/configmap_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ maxmemory 1000000000
4848
maxmemory-policy noeviction
4949
maxmemory-samples 5
5050
no-appendfsync-on-rewrite no
51-
notify-keyspace-events
5251
repl-backlog-size 1048576
5352
repl-backlog-ttl 3600
5453
set-max-intset-entries 512

0 commit comments

Comments
 (0)