<p>I'm trying to install Kritis using :</p>

<pre><code>azureuser@Azure:~/kritis/docs/standalone$ helm install  kritis https://storage.googleapis.com/kritis-charts/repository/kritis-charts-0.2.0.tgz --set certificates.ca="$(cat ca.crt)" --set certificates.cert="$(cat kritis.crt)" --set certificates.key="$(cat kritis.key)" --debug
</code></pre>

<p>But I'm getting the next error:</p>

<pre><code>install.go:148: [debug] Original chart version: ""
install.go:165: [debug] CHART PATH: /home/azureuser/.cache/helm/repository/kritis-charts-0.2.0.tgz

Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(ClusterRole.metadata): unknown field "kritis.grafeas.io/install" in io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta
helm.go:76: [debug] error validating "": error validating data: ValidationError(ClusterRole.metadata): unknown field "kritis.grafeas.io/install" in io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta
helm.sh/helm/v3/pkg/kube.scrubValidationError
        /home/circleci/helm.sh/helm/pkg/kube/client.go:520
helm.sh/helm/v3/pkg/kube.(*Client).Build
        /home/circleci/helm.sh/helm/pkg/kube/client.go:135
</code></pre>

<p>Is there a way to know exactly on which file the error is being triggered? and what exactly that error means? 
The original chart files are available here : <a href="https://github.com/grafeas/kritis/blob/master/kritis-charts/templates/preinstall/clusterrolebinding.yaml" rel="nofollow noreferrer">https://github.com/grafeas/kritis/blob/master/kritis-charts/templates/preinstall/clusterrolebinding.yaml</a></p>

<p>You cant get from where exactly this coming from but this output is giving some clues regarding that. 
In your error message we have some useful information:</p>

<pre><code>helm.go:76: [debug] error validating "": error validating data: ValidationError(ClusterRole.metadata): unknown field "kritis.grafeas.io/install" in io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta
</code></pre>

<ul>
<li><code>error validating ""</code></li>
<li><code>ClusterRole</code></li>
<li><code>kritis.grafeas</code></li>
</ul>

<p>You can download your chart and dig into it for these terms using <code>cat</code> as follows: </p>

<pre><code>$ wget https://storage.googleapis.com/kritis-charts/repository/kritis-charts-0.2.0.tgz
$ tar xzvf kritis-charts-0.2.0.tgz 
$ cd kritis-charts/
</code></pre>

<p>If your grep for <code>kritis.grafeas.io/install</code>, you can see a "variable" being set:</p>

<pre><code>$ grep -R "kritis.grafeas.io/install" *
values.yaml:kritisInstallLabel: "kritis.grafeas.io/install"
</code></pre>

<p>Now we can grep this variable and check what we can find: </p>

<pre><code>$ grep -R "kritisInstallLabel" *
templates/rbac.yaml:      {{ .Values.kritisInstallLabel }}: ""
templates/rbac.yaml:    {{ .Values.kritisInstallLabel }}: ""
templates/kritis-server-deployment.yaml:    {{ .Values.kritisInstallLabel }}: ""
templates/preinstall/pod.yaml:    {{ .Values.kritisInstallLabel }}: ""
templates/preinstall/pod.yaml:      - {{ .Values.kritisInstallLabel }}
templates/preinstall/serviceaccount.yaml:    {{ .Values.kritisInstallLabel }}: ""
templates/preinstall/clusterrolebinding.yaml:    {{ .Values.kritisInstallLabel }}: ""
templates/postinstall/pod.yaml:    {{ .Values.kritisInstallLabel }}: ""
templates/postinstall/pod.yaml:      - {{ .Values.kritisInstallLabel }}
templates/secrets.yaml:    {{ .Values.kritisInstallLabel }}: ""
templates/predelete/pod.yaml:    {{ .Values.kritisInstallLabel }}: ""
templates/kritis-server-service.yaml:    {{ .Values.kritisInstallLabel }}: ""
values.yaml:kritisInstallLabel: "kritis.grafeas.io/install"
</code></pre>

<p>In this output we can see a <code>rbac.yaml</code> file. That matches with one of the terms we are looking for (<code>ClusterRole</code>):</p>

<p>If we read this file, we can see the <code>ClusterRole</code> and a line referring to <code>kritisInstallLabel</code>:</p>

<pre><code>- apiVersion: rbac.authorization.k8s.io/v1beta1
  kind: ClusterRoleBinding
  metadata:
    name: {{ .Values.clusterRoleBindingName }}
    labels:
      {{ .Values.kritisInstallLabel }}: ""
</code></pre>

<p><code>{{ .Values.kritisInstallLabel }}: ""</code> will be translated as <code>.Values.kritis.grafeas.io/install</code> by helm and that's where your error is coming from. </p>
