missing required field "containers" in com.rabbitmq.v1beta1.RabbitmqCluster.spec.override.statefulSet.spec.template.spec #1220
-
Describe the bugcontainers should not be a required parameter To ReproduceSteps to reproduce the behavior:
Include any YAML or manifest necessary to reproduce the problem. Expected behavior Version and environment information
Additional context
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
here is a working version, but it looks ugly |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
I will convert this issue to a GitHub discussion. Currently GitHub will automatically close and lock the issue even though your question will be transferred and responded to elsewhere. This is to let you know that we do not intend to ignore this but this is how the current GitHub conversion mechanism makes it seem for the users :( |
Beta Was this translation helpful? Give feedback.
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