-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
K8SPS-212: Add validation rules #308
base: main
Are you sure you want to change the base?
Changes from 2 commits
8bdb03f
6a708ee
e807998
fa4a3ba
4e9bea8
f54f8e3
b747f1d
8ff3228
63f0c37
63fd191
9fcfac2
4bb9edd
01392e5
83d7784
a4df791
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6694,6 +6694,13 @@ spec: | |
type: string | ||
type: object | ||
type: object | ||
x-kubernetes-validations: | ||
- message: HAProxy can not be enabled with 'group-replication' clusterType | ||
rule: 'self.mysql.clusterType==''group-replication'' ? !self.proxy.haproxy.enabled | ||
: true' | ||
- message: HAProxy and Orchestrator must be enabled with 'async' clusterType | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is not true, you can have only 1 MySQL server and you should not have orc and HaProxy for it There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok.. then the rules would be
Is that right @hors There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @inelpandzic let's remove |
||
rule: 'self.mysql.clusterType==''async'' ? self.proxy.haproxy.enabled | ||
&& self.orchestrator.enabled : true' | ||
status: | ||
properties: | ||
backupVersion: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now we support HAProxy + GR