StackConfigPolicy ECK Index template fails to create

Hi,

According to docs on Elastic Stack configuration policies | Elastic Cloud on Kubernetes [2.11] | Elastic I'm trying to deploy simple ILM and index template. Everything works fine when I deploy ILM only but I can't get index template to work. I'm using code below:

apiVersion: stackconfigpolicy.k8s.elastic.co/v1alpha1
kind: StackConfigPolicy
metadata:
  name: metricbeat7d-policy
  namespace: eck
spec:
  elasticsearch:
    indexLifecyclePolicies:
      metricbeat-configpolicytest-7d:
        phases:
          cold:
            actions:
              readonly: {}
              set_priority:
                priority: 0
            min_age: 1d
          delete:
            actions:
              delete: {}
            min_age: 7d
          hot:
            actions:
              forcemerge:
                index_codec: best_compression
                max_num_segments: 1
              rollover:
                max_age: 1d
                max_primary_shard_size: 50GB
            min_age: 0ms
    indexTemplates:
      component_templates: {}
      composableIndexTemplates:
        metricbeat-test:
          composed_of: {}
          data_stream:
            allow_custom_routing: false
            hidden: false
          index_patterns:
            - test-*
          priority: 200
          template:
            settings:
              index:
                lifecycle:
                  name: metricbeat-configpolicytest-7d
                max_docvalue_fields_search: '200'
                refresh_interval: 5s
        version: 1
  resourceSelector:
    matchLabels:
      eckpolicyid: es-central

Operator version 2.11.0 on openshift cluster 4.12.45

Error I got in status:

        error:
          message: >-
            java.lang.IllegalStateException: Error processing state change
            request for file_settings, errors:
            org.elasticsearch.xcontent.XContentParseException: [1:1178]
            [reserved_state_chunk] failed to parse field [state]

            Caused by: org.elasticsearch.xcontent.XContentParseException:
            [1:1178] [state] failed to parse field [index_templates]

            Caused by: java.lang.ClassCastException: class java.lang.Integer
            cannot be cast to class java.util.Map (java.lang.Integer and
            java.util.Map are in module java.base of loader 'bootstrap')


            Caused by: org.elasticsearch.xcontent.XContentParseException:
            [1:1178] [reserved_state_chunk] failed to parse field [state]

            Caused by: org.elasticsearch.xcontent.XContentParseException:
            [1:1178] [state] failed to parse field [index_templates]

            Caused by: java.lang.ClassCastException: class java.lang.Integer
            cannot be cast to class java.util.Map (java.lang.Integer and
            java.util.Map are in module java.base of loader 'bootstrap')