We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d394281 commit 5597afaCopy full SHA for 5597afa
internal/resource/observer/utils.go
@@ -663,6 +663,11 @@ func (m *OBServerManager) cleanWorkerK8sResource() error {
663
}
664
665
666
+ if val, exist := resourceutils.GetAnnotationField(m.OBServer, oceanbaseconst.AnnotationsIndependentPVCLifecycle); exist && val == "true" {
667
+ m.Logger.Info("Independent PVC lifecycle, skip deleting pvc")
668
+ return errs
669
+ }
670
+
671
// delete pvc
672
pvc := &corev1.PersistentVolumeClaim{}
673
if err := m.K8sResClient.DeleteAllOf(m.Ctx, pvc,
0 commit comments