Bug #113542 delete sts,the operator not recreate the sts
Submitted: 3 Jan 9:35 Modified: 16 Jan 18:00
Reporter: Bing Ma (OCA) Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Operator Severity:S2 (Serious)
Version:8.2.0-2.1.1 OS:Any
Assigned to: MySQL Verification Team CPU Architecture:Any

[3 Jan 9:35] Bing Ma
Description:
delete sts,the operator not recreate the sts

How to repeat:
kubectl delete sts instance
the operator should aware this, and recreate sts
[15 Jan 19:32] MySQL Verification Team
Hi,

Thank you for your report but I'm not sure I follow. What does happen when you delete a StatefulSet and what do you expect to happen?
[16 Jan 1:29] Bing Ma
nothing happened, expect to recreate the sts
[16 Jan 1:30] Bing Ma
the sts just deleted, I expect the sts to be recreated by the operator
[16 Jan 18:00] MySQL Verification Team
Hi,

This is a behavior we do not plan to fix for now.

If the user does something totally wrong; could be a slight mistake, might be a big chaos, might be purpose. Unless it's the slight mistake fixing this automatically however might lead to even more severe consequences.

This is something we will revisit in future bot for now we will not change this behavior.

Thank you for your interest in MySQL