Failed to render repeatable items in the config screen

Hello,
I am trying to use repeatable element and eventually failing to correctly render the template.

My config looks like this

apiVersion: kots.io/v1beta1
kind: Config
metadata:
  name: conf-name
  annotations:
    kots.io/exclude: "true"
spec:
  groups:
    - name: group_1
      title: Group 1
      items:
        - name: favourites
          title:  Favourites
          type: text
          repeatable: true
          templates:
          - apiVersion: kots.io/v1beta1
            kind: HelmChart
            name: app-name
            yamlPath: spec.values.favourite_config[0]
          valuesByGroup:
            group_1:
              favourite-default-1: "icecream"

and my template manifests looks like this

apiVersion: kots.io/v1beta1
kind: HelmChart
metadata:
  name: app-name
  annotations:
    kots.io/exclude: "true"
spec:
  chart:
    name: chart-name
    chartVersion: chart-version
    releaseName: release-name
  helmVersion: v3
  useHelmInstall: true
  namespace: ns
  values:
        favourite_config:
          - "repl{{ ConfigOption "[[repl .favourites ]]" }}"

I want to use the repeatable item favourites in the manifests as a list.

From documentation I understand that [[repl .favourites]] should render favourite-default-1 but it just simply render as [[repl .favourites]] string itself.

More info:

  • I can see value being set for valuesByGroup(see below code) in kotsKinds/config.yaml, if i hardcode favourite-default-1 in template then only it populates the value else it wont, hence I think there is an issue while rendering [[repl .favourites]]
favourite-default-1:
      default: icecream
      repeatableItem: favourites

Your help is appreciated, Thanks !

Hi @VikramKumar,

I was able to reproduce this issue. This seems to be a bug in recent versions of KOTS where repeatable configuration items are not processed for HelmChart custom resources. I will create a ticket internally to track this issue. Thanks for reporting this, and apologies for the inconvenience!

Please do let me know when it is fixed ! Thank you for the quick response !