[
https://issues.redhat.com/browse/ISPN-12076?page=com.atlassian.jira.plugi...
]
Vittorio Rigamonti commented on ISPN-12076:
-------------------------------------------
I agree that xml in yaml is not cool, on the other side it provides a complete solution
for the user:
* xml is well document in Infinispan docs
* no additional constraints are added
* no lines for xml->yaml mapping needed
I would add a yaml-only syntax for very common cases, but leave xml template for user that
needs specific configuration.
Ability to define the Cache template in yaml in the operator
------------------------------------------------------------
Key: ISPN-12076
URL:
https://issues.redhat.com/browse/ISPN-12076
Project: Infinispan
Issue Type: Enhancement
Components: Operator
Reporter: Ramon Gordillo Gutierrez
Assignee: Vittorio Rigamonti
Priority: Major
In infinispan operator 2.0, there is a way to define caches with kubernetes CR. However,
defining the template for that cache should be done in
xml: [https://github.com/infinispan/infinispan-operator/blob/master/docum...
However, it is not ideal to use xml in yaml files. For example, instead of:
{{name: mycache}}
{{template:
{color:#ff8b00}<infinispan><cache-container><distributed-cache><mode>SYNC</mode><owners>1</owners></distributed-cache></cache-container></infinispan>{color}}}
It will be better something like:
{{name: mycache}}
{{template:}}
{{{color:#00875a} distributed-cache:{color}}}
{color:#00875a}{{ mode: SYNC}}
{{ owners: 1}}{color}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)