spotahome / redis-operator

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

CRD is too big #585

Closed uhthomas closed 1 year ago

uhthomas commented 1 year ago

Expected behaviour

The CRD should be apply-able.

Actual behaviour

The CustomResourceDefinition "redisfailovers.databases.spotahome.com" is invalid: metadata.annotations: Too long: must have at most 262144 bytes

Steps to reproduce the behaviour

Apply the CRD https://raw.githubusercontent.com/spotahome/redis-operator/fe8090ac7291ee53ac30e534fa1cc03e5759fd10/manifests/databases.spotahome.com_redisfailovers.yaml.

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.

uhthomas commented 1 year ago

https://kubernetes.io/docs/reference/using-api/server-side-apply/ has been suggested as a solution.