[infinispan-issues] [JBoss JIRA] (ISPN-12076) Ability to define the Cache template in yaml in the operator
Ramon Gordillo Gutierrez (Jira)
issues at jboss.org
Fri Jul 3 11:32:48 EDT 2020
[ https://issues.redhat.com/browse/ISPN-12076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14198272#comment-14198272 ]
Ramon Gordillo Gutierrez commented on ISPN-12076:
-------------------------------------------------
I don't mean to build a whole object definition for cache template in the CRD.
I guess something like passing template as not typed object field, and then just yaml2json the object to be passed using REST to infinispan API may do the work. I understand that xml is well documented in infinispan, but if you create the CR in an IDE or do some kind of yaml checking, the xml template cannot be linted, and you have to do a 2-steps approach and from my PoV it has some issues in usability.
> 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/documentation/asciidoc/topics/proc_creating_caches_xml.adoc]
> 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)
More information about the infinispan-issues
mailing list