nacos-group / nacos-k8s

This project contains a Nacos Docker image meant to facilitate the deployment of Nacos on Kubernetes using StatefulSets.
578 stars 468 forks source link

[issue] nacos-operator-all.yaml format error #415

Closed yjqg6666 closed 1 year ago

yjqg6666 commented 1 year ago

Version: master / fcf35b6ab39b5aace3dabe33a0af6916aedc2770

$ kubectl apply -f chart/nacos-operator/nacos-operator-all.yaml

serviceaccount/nacos-operator created

Warning: apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition

customresourcedefinition.apiextensions.k8s.io/nacos.nacos.io created

error: error parsing chart/nacos-operator/nacos-operator-all.yaml: error converting YAML to JSON: yaml: line 46: did not find expected '-' indicator

$ yq -P -o json ./nacos-operator-all.yaml >/dev/null Error: bad file './nacos-operator-all.yaml': yaml: line 1282: did not find expected '-' indicator

wilsonwu commented 1 year ago

Thanks for report this problem, I will try to solve it.

FZmz commented 1 year ago

Hey, bro, have you solved the problem yet?

wilsonwu commented 1 year ago

Hey, bro, have you solved the problem yet?

Not yet, if you are interesting in it, just do it :)

wilsonwu commented 1 year ago

Fixed in: https://github.com/nacos-group/nacos-k8s/pull/417

Waiting for merge, but it is maybe a long time work.

yjqg6666 commented 1 year ago

Pass by yq, no error.