Skip to content

Commit 4a2faae

Browse files
committed
Set disk free space limit to 2GB by default
1 parent 88efbd0 commit 4a2faae

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

internal/resource/configmap.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ cluster_formation.k8s.address_type = hostname
3333
cluster_formation.node_cleanup.interval = 30
3434
cluster_formation.node_cleanup.only_log_warning = true
3535
cluster_partition_handling = pause_minority
36-
queue_master_locator = min-masters`
36+
queue_master_locator = min-masters
37+
disk_free_limit.absolute = 2GB`
3738

3839
defaultTLSConf = `
3940
ssl_options.certfile = /etc/rabbitmq-tls/tls.crt

internal/resource/configmap_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ cluster_formation.node_cleanup.interval = 30
9696
cluster_formation.node_cleanup.only_log_warning = true
9797
cluster_partition_handling = pause_minority
9898
queue_master_locator = min-masters
99+
disk_free_limit.absolute = 2GB
99100
cluster_name = ` + builder.Instance.Name + "\n"
100101
Expect(configMapBuilder.Update(configMap)).To(Succeed())
101102
Expect(configMap.Data).To(HaveKeyWithValue("rabbitmq.conf", defaultRabbitmqConf))
@@ -117,6 +118,7 @@ cluster_formation.node_cleanup.interval = 30
117118
cluster_formation.node_cleanup.only_log_warning = true
118119
cluster_partition_handling = pause_minority
119120
queue_master_locator = min-masters
121+
disk_free_limit.absolute = 2GB
120122
cluster_name = ` + builder.Instance.Name + `
121123
my-config-property-0 = great-value
122124
my-config-property-1 = better-value

0 commit comments

Comments
 (0)