Merge "Add allowUnsafeConfig database setting"
This commit is contained in:
commit
51a44bfc48
|
@ -320,6 +320,15 @@ verbatim):
|
||||||
|
|
||||||
The key name in the secret should be ``dburi``.
|
The key name in the secret should be ``dburi``.
|
||||||
|
|
||||||
|
.. attr:: allowUnsafeConfig
|
||||||
|
:default: False
|
||||||
|
|
||||||
|
If you are running in a resource constrained environment
|
||||||
|
(such as minikube), the requested resource values for the
|
||||||
|
Percona XtraDB may be too large. Set this to True to
|
||||||
|
override the default values and construct the cluster
|
||||||
|
regardless. Only use this for testing.
|
||||||
|
|
||||||
.. attr:: zookeeper
|
.. attr:: zookeeper
|
||||||
|
|
||||||
This is not required unless you want to manage the ZooKeeper
|
This is not required unless you want to manage the ZooKeeper
|
||||||
|
|
|
@ -16,6 +16,8 @@
|
||||||
include_tasks: tasks/apply_cr.yaml
|
include_tasks: tasks/apply_cr.yaml
|
||||||
vars:
|
vars:
|
||||||
spec:
|
spec:
|
||||||
|
database:
|
||||||
|
allowUnsafeConfig: true
|
||||||
executor:
|
executor:
|
||||||
count: 1
|
count: 1
|
||||||
sshkey:
|
sshkey:
|
||||||
|
|
|
@ -75,6 +75,8 @@
|
||||||
- include_tasks: tasks/apply_cr.yaml
|
- include_tasks: tasks/apply_cr.yaml
|
||||||
vars:
|
vars:
|
||||||
spec:
|
spec:
|
||||||
|
database:
|
||||||
|
allowUnsafeConfig: true
|
||||||
executor:
|
executor:
|
||||||
count: 1
|
count: 1
|
||||||
sshkey:
|
sshkey:
|
||||||
|
|
|
@ -124,8 +124,8 @@ class Zuul:
|
||||||
if not self.manage_db:
|
if not self.manage_db:
|
||||||
self.log.info("DB is externally managed")
|
self.log.info("DB is externally managed")
|
||||||
return
|
return
|
||||||
# TODO: get this from spec
|
|
||||||
small = True
|
small = self.spec.get('database', {}).get('allowUnsafeConfig', False)
|
||||||
|
|
||||||
self.log.info("DB is internally managed")
|
self.log.info("DB is internally managed")
|
||||||
self.pxc = pxc.PXC(self.api, self.namespace, self.log)
|
self.pxc = pxc.PXC(self.api, self.namespace, self.log)
|
||||||
|
|
Loading…
Reference in New Issue