You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
spec.template.metadata.labels was nil, maybe you can kubectl describe the console resource to check the actual definition of this resource, also check the console crd is correct or not.
The error indicates the Console controller creates a Deployment where spec.selector does not match spec.template.metadata.labels. This is a Kubernetes validation error — the Deployment spec requires the selector to match the pod template labels.
Root cause hypothesis: The controller generates the Deployment object with a nil or mismatched label selector, likely because the Console CR does not propagate labels correctly to the generated Deployment spec.
Note: Filed July 2022. Please verify against the current operator version.
Activity
caigy commentedon Jul 12, 2022
@feiyuyitiao Is
spec.template.metadata.labelsdefined inconsole.yaml?feiyuyitiao commentedon Jul 13, 2022
fix by change code: pkg/controller/console/console_controller.go:201
ccctask commentedon Jul 14, 2022
same issue with me 😯
ccctask commentedon Jul 14, 2022
rocketmq-operator/example/rocketmq_v1alpha1_rocketmq_cluster.yamlwith example resources defineccctask commentedon Jul 14, 2022
:-) This solves the problem, but causes the deployment to rely on its own selector label, not the templates's label
caigy commentedon Jul 15, 2022
spec.template.metadata.labelswasnil, maybe you cankubectl describetheconsoleresource to check the actual definition of this resource, also check the consolecrdis correct or not.Merge pull request #116 from ltamber/master
RockteMQ-AI commentedon Aug 22, 2026
Issue Evaluation
Category:
bug| Status: Likely ValidThe error indicates the Console controller creates a Deployment where
spec.selectordoes not matchspec.template.metadata.labels. This is a Kubernetes validation error — the Deployment spec requires the selector to match the pod template labels.Root cause hypothesis: The controller generates the Deployment object with a nil or mismatched label selector, likely because the Console CR does not propagate labels correctly to the generated Deployment spec.
Note: Filed July 2022. Please verify against the current operator version.
Automated evaluation by RockteMQ-AI