Trouble installing kibana plugin

I'm trying to use an init container to install a kibana plugin but I'm getting an error.
Events:
Type Reason Age From Message


Warning ReconciliationError 11m (x18 over 30m) kibana-controller Reconciliation error: Deployment.apps "logs-kb" is invalid: spec.template.spec.initContainers[0].image: Required value

I'm hoping I don't need to specify the image in the podtemplate and can leave it to eck to populate this correctly. Am I doing something wrong?

Here's my kibana spec

apiVersion: kibana.k8s.elastic.co/v1beta1
kind: Kibana
metadata:
name: logs
namespace: tools
spec:
version: 7.4.2
count: 1
elasticsearchRef:
name: logs
http:
tls:
selfSignedCertificate:
disabled: true
podTemplate:
spec:
initContainers:
- name: install-plugins
command: ['sh', '-c', '|bin/kibana-plugin install https://github.com/sivasamyk/logtrail/releases/download/v0.1.31/logtrail-7.4.1-0.1.31.zip' ]

Hi Terry,

The installation of plugins for Kibana is not yet supported as for Elasticsearch.

You can track the feature here: https://github.com/elastic/cloud-on-k8s/issues/2123.

In a meantime, you can use your own image with the plugins already installed
or use this workaround:

apiVersion: kibana.k8s.elastic.co/v1beta1
kind: Kibana
metadata:
  name: logs
  namespace: tools
spec:
  version: 7.4.1
  count: 1
  elasticsearchRef:
    name: tools
  http:
    tls:
      selfSignedCertificate:
        disabled: true
  podTemplate:
    spec:
      volumes:
      - name: kibana-plugins
        emptyDir: {}
      containers:
      - name: kibana
        volumeMounts:
        - name: kibana-plugins
          mountPath: /usr/share/kibana/plugins
      initContainers:
      - name: install-plugins
        image: docker.elastic.co/kibana/kibana:7.4.1
        command:
        - sh
        - -c
        - bin/kibana-plugin install https://github.com/sivasamyk/logtrail/releases/download/v0.1.31/logtrail-7.4.1-0.1.31.zip
        volumeMounts:
        - name: kibana-plugins
          mountPath: /usr/share/kibana/plugins