Skip to content

Commit 9ec1fa2

Browse files
author
Peng Zhou
committed
add HAProxyGroup
1 parent e3f8e55 commit 9ec1fa2

File tree

5 files changed

+80
-1295
lines changed

5 files changed

+80
-1295
lines changed

api/v1/common_types.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,14 @@ type HAProxy struct {
111111
Ingress Ingress `json:"ingress,omitempty"`
112112
}
113113

114+
// HAProxyGroup represents group-level HAProxy configuration that can override cluster settings
115+
type HAProxyGroup struct {
116+
Enabled bool `json:"enabled,omitempty"`
117+
AppServers []AppServers `json:"appServers,omitempty"`
118+
PathBasedRouting *bool `json:"pathBasedRouting,omitempty"`
119+
TcpPorts *Tcpports `json:"tcpPorts,omitempty"`
120+
}
121+
114122
type AppServers struct {
115123
Name string `json:"name,omitempty"`
116124
Type string `json:"type,omitempty"`

api/v1/marklogiccluster_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ type MarklogicGroups struct {
108108
PriorityClassName string `json:"priorityClassName,omitempty"`
109109
HugePages *HugePages `json:"hugePages,omitempty"`
110110
LogCollection *LogCollection `json:"logCollection,omitempty"`
111-
HAProxy *HAProxy `json:"haproxy,omitempty"`
111+
HAProxy *HAProxyGroup `json:"haproxy,omitempty"`
112112
// +kubebuilder:default:=false
113113
IsBootstrap bool `json:"isBootstrap,omitempty"`
114114
Tls *Tls `json:"tls,omitempty"`

api/v1/zz_generated.deepcopy.go

Lines changed: 31 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)