How can I templatize repository values for Bitnami / Tanzu Application Catalog
search cancel

How can I templatize repository values for Bitnami / Tanzu Application Catalog

book

Article ID: 433043

calendar_today

Updated On:

Products

VMware Tanzu Application Catalog

Issue/Introduction

We are wrapping a bitnami kafka helm chart and trying to provide some initContainers in values.yaml so these are consumed by bitnami kafka. How can we can pass in the image registry dynamically? 

initContainers:
- name: generate-jks
image: <image-registry>/com/broadcom/msd/imageName:imageVersion-#-##-########-######
imagePullPolicy: IfNotPresent

Resolution

You can templatize the value if you add quotes in the image section:
You can use {{ }}
 
Provide global.imageRegistry in the external values.yaml file for your helm install.
 
Example:
image: "{{ .Values.global.imageRegistry }}/com/broadcom/msd/imageName:imageVersion-#-##-########-######"