Hi everyone
I’m facing a problem when I try to create a code fresh application with Kustomize.
I keep getting this error in the UI that says: must specify --enable-helm
locally when I test my Kustomize configuration with a helm chart it works perfectly as I have control over the arguments that I can provide
locally I can test my repo with test and it builds perfectly:
kustomize build -o temp --enable-helm --helm-command helm
after doing some research I found that I need to actually add a config map and add the build options that I need, like this:
apiVersion: v1
kind: ConfigMap
metadata:
name: argocd-cm
namespace: argocd
labels:
app.kubernetes.io/name: argocd-cm
app.kubernetes.io/part-of: argocd
data:
kustomize.buildOptions: --enable-helm --load-restrictor LoadRestrictionsNone
but this doesn’t seem to work, normally was hoping to find where I can add options in codefresh UI for Kustomize application.
my Kustomize yaml file is
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
helmGlobals:
chartHome: ../
helmCharts:
- name: demo
# The name of the release
releaseName: demo
# namespace where the resources will be created.
namespace: demo
includeCRDs: true
I’m using this file to point to a helm chart that I have in my git repo.
i know this is just some configuration that I’m missing, but I would appreciate any guidance that I can get on where I can add the missing “–enable-helm” option in codefresh, or any documentation that might help.
If there is any information that you want me to provide just let me know.
Thank you in advance for your time and efforts