# Unable to exclude helm chart

**URL:** https://community.replicated.com/t/unable-to-exclude-helm-chart/562
**Category:** Packaging an application
**Created:** [August 12, 2021, 12:22pm UTC](https://community.replicated.com/t/unable-to-exclude-helm-chart/562 "2021-08-12T12:22:29Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![MANI\_M](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.replicated.com/mani_m/32/136_2.png) [@MANI\_M](https://community.replicated.com/u/MANI_M)
#### Post date: [August 12, 2021, 12:22pm UTC](https://community.replicated.com/t/unable-to-exclude-helm-chart/562/1 "2021-08-12T12:22:30Z")

</div>

I would like to exclude nfs helm chart for cloud deployments. As per [the documentation](https://kots.io/vendor/helm/optional-charts/). I tried specifying [kots.io/exclude](http://kots.io/exclude) annotation. It doesn’t seem to be working.

```auto
apiVersion: kots.io/v1beta1
kind: HelmChart
metadata:
  annotations:
    kots.io/exclude: '{{repl not IsKurl}}'
  name: nfs-server-provisioner
  namespace: '{{repl Namespace}}'
spec:
  chart:
    name: nfs-server-provisioner
    chartVersion: 1.1.3
  values:
    persistence:
      enabled: true
      size: 100Gi

```

What Is the issue here?  
Doesn’t helm chart exclude doesn’t work with repl templates?

---

<div class="post-metadata">

### Author: ![Camila\_Macedo](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.replicated.com/camila_macedo/32/603_2.png) [@Camila\_Macedo](https://community.replicated.com/u/Camila_Macedo)
#### Post date: [December 21, 2022, 9:07am UTC](https://community.replicated.com/t/unable-to-exclude-helm-chart/562/2 "2022-12-21T09:07:09Z")

</div>

Hi @MANI_M,

Note that `{{repl not IsKurl}}` will return true when the solution is not installed in cluster done by KURL. So, if you are looking for to say to kots does not apply a manifest when the application is running in a KURL cluster then it should be `kots.io/exclude: '{{repl IsKurl}}'` instead.

I hope that can help you out.

---

<div class="post-metadata">

### Author: ![Alex\_Parker](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.replicated.com/alex_parker/32/777_2.png) [@Alex\_Parker](https://community.replicated.com/u/Alex_Parker)
#### Post date: [December 21, 2022, 2:42pm UTC](https://community.replicated.com/t/unable-to-exclude-helm-chart/562/3 "2022-12-21T14:42:28Z")

</div>

There is an [`exclude` field](https://docs.replicated.com/reference/custom-resource-helmchart#exclude) in the HelmChart custom resource that is used for this purpose.
