How to overwrite helmCharts definitions in Kustomize?

Hello everyone. Is it possible to have a helmchart definition in base folder and overwrite version and valuesInline into overlays directories with Kustomize?

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization  

resources:
  - clusterissuer.yaml

helmCharts:
  - name: cert-manager
    includeCRDs: false
    releaseName: cert-manager
    namespace: cert-manager
    version: 1.9.1
    repo: https://charts.jetstack.io
    valuesInline:
      cainjector:
        nodeSelector:
          node_type: infra
        tolerations:
          - effect: NoSchedule
            key: infra
            operator: Equal
            value: "true"
1 Like