Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Add support to set disk_free_limit value in CRD #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pkg/apis/rabbitmq/v1/rabbitmq_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ type RabbitmqSpec struct {
// working now, but will be ignored in future versions
RabbitmqMemoryHighWatermark string `json:"memory_high_watermark,omitempty"`

// set disk_free_limit.absolute value
RabbitmqDiskFreeLimit string `json:"disk_free_limit,omitempty"`

// Hipe
RabbitmqHipeCompile bool `json:"hipe_compile,omitempty"`

Expand Down
5 changes: 5 additions & 0 deletions pkg/apis/rabbitmq/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pkg/controller/rabbitmq/rabbitmq_configmaps.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ cluster_partition_handling = {{ .Spec.RabbitmqClusterPartitionHandling | default
loopback_users.guest = false
hipe_compile = {{ .Spec.RabbitmqHipeCompile | default "false" }}
vm_memory_high_watermark.absolute = {{ .Spec.RabbitmqMemoryHighWatermark }}
disk_free_limit.absolute = {{ .Spec.RabbitmqDiskFreeLimit }}
`

const defaultRabbitmqPlugins = `[
Expand Down