diff --git a/e2e/dragonfly_controller_test.go b/e2e/dragonfly_controller_test.go index b4ec7e6..0bfd627 100644 --- a/e2e/dragonfly_controller_test.go +++ b/e2e/dragonfly_controller_test.go @@ -354,6 +354,19 @@ var _ = Describe("Dragonfly Lifecycle tests", Ordered, FlakeAttempts(3), func() }) + It("Should recreate missing statefulset", func() { + var ss appsv1.StatefulSet + err := k8sClient.Get(ctx, types.NamespacedName{ + Name: name, + Namespace: namespace, + }, &ss) + Expect(err).To(BeNil()) + + Expect(k8sClient.Delete(ctx, &ss)).To(BeNil()) + err = waitForStatefulSetReady(ctx, k8sClient, name, namespace, 2*time.Minute) + Expect(err).To(BeNil()) + }) + It("Update to resources and args should be propagated successfully", func() { newResources := corev1.ResourceRequirements{ Limits: corev1.ResourceList{