matrixone-operator icon indicating copy to clipboard operation
matrixone-operator copied to clipboard

[Bug]: matrixone operator may lack CRD resource even helm install return success

Open loveRhythm1990 opened this issue 2 years ago • 0 comments

Is there an existing issue for the same bug?

  • [X] I have checked the existing issues.

Environment

  • Version or commit-id (e.g. v0.1.0 or 8b23a93):
  • Hardware parameters:
  • OS type:
  • Others:

Actual Behavior

Steps to reproduce:

  1. use helm install to install mo operator
  2. deploy a mo cluster, wait all pods to start successfully, includes logset pod/cn pod/dn pod
  3. use helm uninstall mo-operator to uninstall a mo operator
  4. use helm install to reinstall mo operator, executed immediately after uninstalling mo-operator

after step 4, it will shows that install successfully, but after a moment the mo operator will report an error that lack CRD. the reason behind this error is that helm does not check if an already existed CRD is been deleting (It's deletiontimestamp is not nil) when installing chart. and after install successfully, the CRD which been deleting will be deleted

Expected Behavior

If a CRD is been deleting, the helm install command should fail

Steps to Reproduce

No response

Additional information

No response

loveRhythm1990 avatar May 19 '23 08:05 loveRhythm1990