Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
inelpandzic committed Aug 5, 2024
1 parent 8ff3228 commit 63f0c37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/v1alpha1/perconaservermysql_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ import (

// PerconaServerMySQLSpec defines the desired state of PerconaServerMySQL

// +kubebuilder:validation:XValidation:message="MySQL Router or HAProxy must be enabled for Group Replication. Enable spec.unsafeFlags.proxy to bypass this check", rule="self.mysql.clusterType=='group-replication' ? !self.proxy.router.enabled && !self.proxy.haproxy.enabled && !self.unsafe.proxy : true"
// +kubebuilder:validation:XValidation:message="MySQL Router or HAProxy must be enabled for Group Replication. Enable spec.unsafeFlags.proxy to bypass this check", rule="self.mysql.clusterType=='group-replication' ? !self.proxy.router.enabled && !self.proxy.haproxy.enabled && !self.unsafeFlags.proxy : true"
// +kubebuilder:validation:XValidation:message="Orchestrator can't be enabled with Group Replication", rule="self.mysql.clusterType=='group-replication' ? !self.orchestrator.enabled : true"
// +kubebuilder:validation:XValidation:message="Orchestrator must be enabled for asynchronous replication. Enable spec.unsafeFlags.orchestrator to bypass this check", rule="self.mysql.clusterType=='async' ? !self.orchestrator.enabled && !self.unsafe.orchestrator : true"
// +kubebuilder:validation:XValidation:message="Haproxy must be enabled for asynchronous replication. Enable spec.unsafeFlags.proxy to bypass this check", rule="self.mysql.clusterType=='async' ? !self.haproxy.enabled && !self.unsafe.proxy : true"
// +kubebuilder:validation:XValidation:message="Orchestrator must be enabled for asynchronous replication. Enable spec.unsafeFlags.orchestrator to bypass this check", rule="self.mysql.clusterType=='async' ? !self.orchestrator.enabled && !self.unsafeFlags.orchestrator : true"
// +kubebuilder:validation:XValidation:message="Haproxy must be enabled for asynchronous replication. Enable spec.unsafeFlags.proxy to bypass this check", rule="self.mysql.clusterType=='async' ? !self.haproxy.enabled && !self.unsafeFlags.proxy : true"
// +kubebuilder:validation:XValidation:message="MySQL Router can't be enabled for asynchronous replication", rule="self.mysql.clusterType=='async' ? self.proxy.router.enabled : true"
type PerconaServerMySQLSpec struct {
CRVersion string `json:"crVersion,omitempty"`
Expand Down

0 comments on commit 63f0c37

Please sign in to comment.