Skip to content

Commit be4bb57

Browse files
author
Peng Zhou
committed
fix validating rule
1 parent 8f655ef commit be4bb57

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/v1/marklogiccluster_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727

2828
// MarklogicClusterSpec defines the desired state of MarklogicCluster
2929

30-
// +kubebuilder:validation:XValidation:rule="!(self.haproxy.enabled == true && self.haproxy.pathBasedRouting == true) || self.image.split(':')[0].matches('.*latest.*') || int(self.image.split(':')[1].split('.')[0] + self.image.split(':')[1].split('.')[1]) >= 111", message="HAProxy and Pathbased Routing is enabled. PathBasedRouting is only supported for MarkLogic 11.1 and above"
30+
// +kubebuilder:validation:XValidation:rule="!(self.haproxy.enabled == true && self.haproxy.pathBasedRouting == true) || self.image.split(':')[1].matches('.*latest.*') || int(self.image.split(':')[1].split('.')[0] + self.image.split(':')[1].split('.')[1]) >= 111", message="HAProxy and Pathbased Routing is enabled. PathBasedRouting is only supported for MarkLogic 11.1 and above"
3131
type MarklogicClusterSpec struct {
3232
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
3333
// Important: Run "make" to regenerate code after modifying this file

config/crd/bases/marklogic.progress.com_marklogicclusters.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11037,7 +11037,7 @@ spec:
1103711037
- message: HAProxy and Pathbased Routing is enabled. PathBasedRouting
1103811038
is only supported for MarkLogic 11.1 and above
1103911039
rule: '!(self.haproxy.enabled == true && self.haproxy.pathBasedRouting
11040-
== true) || self.image.split('':'')[0].matches(''.*latest.*'') ||
11040+
== true) || self.image.split('':'')[1].matches(''.*latest.*'') ||
1104111041
int(self.image.split('':'')[1].split(''.'')[0] + self.image.split('':'')[1].split(''.'')[1])
1104211042
>= 111'
1104311043
status:

0 commit comments

Comments
 (0)