Skip to content

Commit

Permalink
Merge pull request #31 from ucloud/v0.2.1
Browse files Browse the repository at this point in the history
V0.2.1
  • Loading branch information
polefishu authored Mar 6, 2020
2 parents 5f80a1a + 8e02db4 commit a3f8823
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion pkg/resources/configmaps/configmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ func generateRedisConfContent(configMap map[string]string) string {
sort.Strings(keys)

for _, k := range keys {
buffer.WriteString(fmt.Sprintf("%s %s", k, configMap[k]))
v := configMap[k]
if len(v) == 0 {
continue
}
buffer.WriteString(fmt.Sprintf("%s %s", k, v))
buffer.WriteString("\n")
}

Expand Down
1 change: 0 additions & 1 deletion pkg/resources/configmaps/configmap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ maxmemory 1000000000
maxmemory-policy noeviction
maxmemory-samples 5
no-appendfsync-on-rewrite no
notify-keyspace-events
repl-backlog-size 1048576
repl-backlog-ttl 3600
set-max-intset-entries 512
Expand Down

0 comments on commit a3f8823

Please sign in to comment.