Skip to content

missing required field "containers" in com.rabbitmq.v1beta1.RabbitmqCluster.spec.override.statefulSet.spec.template.spec #1220

Discussion options

You must be logged in to vote

This limitation is imposed by Kubernetes StatefulSet admission controller. We "borrowed" the core StatefulSet structure to get validation "for free", instead of re-writing all those rules in our controller.

You don't have to override the containers, you can just use the empty set []. The operator will create the rabbitmq container anyway. Check out this example as reference:

https://github.com/rabbitmq/cluster-operator/blob/main/docs/examples/default-security-context/rabbitmq.yaml

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ChunyiLyu
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1218 on January 03, 2023 12:31.