spotahome / redis-operator

Redis Operator creates/configures/manages high availability redis with sentinel automatic failover atop Kubernetes.
Apache License 2.0
1.48k stars 355 forks source link

helm charts 3.3.0 install err #679

Closed liupeng0518 closed 1 month ago

liupeng0518 commented 7 months ago

Expected behaviour

What do you want to achieve?

Actual behaviour

What is happening? Are all the pieces created? Can you access to the service?

merged this pr :https://github.com/spotahome/redis-operator/pull/631, install has an err:

❯ helm upgrade --install redis-operator redis-operator/redis-operator --version 3.3.0                                                                                          ─╯
Error: 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
helm.go:84: [debug] error parsing : error converting YAML to JSON: yaml: line 4: did not find expected node content

Steps to reproduce the behaviour

Describe step by step what you've have done to get to this point

Environment

How are the pieces configured?

Logs

Please, add the debugging logs. In order to be able to gather them, add -debug flag when running the operator.

TartanLeGrand commented 7 months ago

It is normal for the crd folder not to be templetised.

carnerito commented 6 months ago

@liupeng0518 Did you managed to solve this? I'm having same issue and I'm not sure how to preceed with this.

liupeng0518 commented 6 months ago

@liupeng0518 Did you managed to solve this? I'm having same issue and I'm not sure how to preceed with this.

helm fetch redis-operator/redis-operator --version 3.3.0

and delete this commit https://github.com/spotahome/redis-operator/pull/631/files

then helm install

carnerito commented 6 months ago

Thanks @liupeng0518 I ended up installing operator by directly applying manifests with kubectl.

TartanLeGrand commented 6 months ago

Or maybe you can use the version before the 3.3.0 😄

piyoki commented 6 months ago

I got the same errors.

tpmccallum commented 5 months ago

Same, got the following error:

$ helm repo add redis-operator https://spotahome.github.io/redis-operator
"redis-operator" has been added to your repositories
$ helm repo update
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "redis-operator" chart repository
Update Complete. ⎈Happy Helming!⎈
$ 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
github-actions[bot] commented 3 months ago

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

carnerito commented 3 months ago

not stale

mhbahmani commented 3 months ago

I have the same issue. kubectl v1.25 k8s cluster v1.22

mhbahmani commented 3 months ago

There is an active MR for this problem at #655, but this project seems too abandoned for this MR to get merged :)

romanlytovchenko commented 2 months ago

Maybe this could be helpful for someone helm ... --post-renderer-args='s/{{.*}}/\#/' --post-renderer="sed"

liupeng0518 commented 1 month ago

/close