redis-operator icon indicating copy to clipboard operation
redis-operator copied to clipboard

Issue while applying helm chart

Open tornado67 opened this issue 1 year ago • 2 comments

Expected behaviour

A redis operator has to be installed successfully.

Actual behaviour

Fails out of the box. Command helm install redis-operator redis-operator/redis-operator

fails with the following error:

PS C:\Users\user\Documents\projects\p1\cicd> helm install redis-operator redis-operator/redis-operator
Error: INSTALLATION FAILED: failed to install CRD crds/databases.spotahome.com_redisfailovers.yaml: error parsing : error converting YAML to JSON: yaml: line 4: did not find expected node content

Steps to reproduce the behaviour

Execute helm install redis-operator redis-operator/redis-operator

Environment

EKS cluster platform version eks.7 K8s version - 1.29

tornado67 avatar Jul 12 '24 05:07 tornado67

This was introduced between the 3.2.9 and 3.3.0 chart versions. I just tried updating the chart and got a similar error to above.

cehoffman avatar Jul 12 '24 19:07 cehoffman

I ran into this problem, but it's a side-effect of Helm's specific design and not a bug persay.

Helm explicitly does not support templating in CRD resources.

https://helm.sh/docs/chart_best_practices/custom_resource_definitions/#:~:text=This%20is%20also%20the%20reason%20behind%20removing%20templating%20support%20from%20CRDs.

warmfusion avatar Aug 08 '24 11:08 warmfusion

This issue is stale because it has been open for 45 days with no activity.

github-actions[bot] avatar Sep 23 '24 02:09 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Oct 07 '24 02:10 github-actions[bot]