OT-CONTAINER-KIT / redis-operator

A golang based redis operator that will make/oversee Redis standalone/cluster/replication/sentinel mode setup on top of the Kubernetes.
https://ot-redis-operator.netlify.app/
Apache License 2.0
738 stars 207 forks source link

CRDs are broken. Installation guide broken #781

Open borg286 opened 4 months ago

borg286 commented 4 months ago

What version of redis operator are you using?

redis-operator version: 0.15.0

Does this issue reproduce with the latest release? yes

What operating system and processor architecture are you using (kubectl version)?

Linux. kubectl version "v1.22.3", server version: "v1.24.4+k3s1"

What did you do? Exactly like the getting started docs say: https://ot-container-kit.github.io/redis-operator/guide/installation.html

$ kubectl apply -f https://raw.githubusercontent.com/OT-CONTAINER-KIT/redis-operator/master/config/crd/bases/redis.redis.opstreelabs.in_redis.yaml

What did you expect to see? That the crd was applied

What did you see instead?

The CustomResourceDefinition "redis.redis.redis.opstreelabs.in" is invalid: metadata.annotations: Too long: must have at most 262144 bytes

This same issue is seen with the other CRD ( redis.redis.opstreelabs.in_redisclusters.yaml )

borg286 commented 4 months ago

I can create the CRDs, and delete them. But I can't apply them

drivebyer commented 4 months ago

try to use --server-side flag

borg286 commented 4 months ago

That worked!!! I'll let you decide if you want to update your external docs and then close out this bug or if you want to leave the external docs as is.

jiangjian0920 commented 3 months ago

k8s version v1.18.19 [root@master bases]# kubectl apply -f redis.redis.opstreelabs.in_redis.yaml --server-side Error from server: failed to convert new object to proper version: unable to convert unstructured object to apiextensions.k8s.io/v1, Kind=CustomResourceDefinition: cannot convert int64 to float64