sigstore/helm-charts

Unable to install policy-controller Helm chart

asankov opened this issue · 2 comments

Description

I'm following these docs to install the policy-controller via Helm.

When I run:

helm install policy-controller -n cosign-system sigstore/policy-controller --devel

I get the following error:

Error: INSTALLATION FAILED: 2 errors occurred:
	* Internal error occurred: json: cannot unmarshal number into Go struct field ObjectMeta.spec.template.metadata.annotations of type string
	* Internal error occurred: json: cannot unmarshal number into Go struct field ObjectMeta.spec.template.metadata.annotations of type string
	*

I have already ran the previous steps:

helm repo add sigstore https://sigstore.github.io/helm-charts
helm repo update
kubectl create namespace cosign-system

The same happens if I get the default values file and provide it to Helm:

$ helm install policy-controller -n cosign-system sigstore/policy-controller --devel --values=values.yaml

Error: INSTALLATION FAILED: 2 errors occurred:
	* Internal error occurred: json: cannot unmarshal number into Go struct field ObjectMeta.spec.template.metadata.annotations of type string
	* Internal error occurred: json: cannot unmarshal number into Go struct field ObjectMeta.spec.template.metadata.annotations of type string
	*

Am I missing something? Do I need to provide more values?

I think the issue was with my cluster. Retrying the steps on a brand new cluster installed the chart successfully.

@asankov Happy to hear that!