Elasticsearch upgrade admission webhook error elastic-es-validation-v1.k8s.elastic.co

Hi there,

I’m having elasticsearch deployed inside Kubernetes (v1.32.7)

Operator version was 2.16.1 and stack version 0.4.0

Upgraded them to 3.1.0 and 0.14.1 and now having below error on operator and ES not deployed anymore

 Events:                                                                                                                                                                                                                                                                                                                                                                            │
│   Type     Reason               Age                 From                      Message                                                                                                                                                                                                                                                                                              │
│   ----     ------               ----                ----                      -------                                                                                                                                                                                                                                                                                              │
│   Warning  ReconciliationError  40s (x12 over 51s)  elasticsearch-controller  Failed to apply spec change: adjust resources: adjust discovery config: admission webhook "elastic-es-validation-v1.k8s.elastic.co" denied the request: panic: assignment to entry in nil map [recovered]                                                                                            │
│   Warning  ReconciliationError  30s (x13 over 51s)  elasticsearch-controller  Reconciliation error: admission webhook "elastic-es-validation-v1.k8s.elastic.co" denied the request: panic: assignment to entry in nil map [recovered]    

Tried uninstalling and reinstall completely (keeping pv data) and same error

Not sure exactly what happened, cannot reproduce the issue anymore on a fresh install but I would like to resolve the problem

Can someone point me to the right direction please?

LE: Trying to upgrade to 8.19.4

LEE: In the end I just removed everything and redeployed and worked … (of course, kept the pv)

Regards,