Skip to content

Commit 9699be0

Browse files
committed
🐛 Remove the probes from the migration container.
They basically never make sense, and a liveness probe will probably outright fail.
1 parent 0c10998 commit 9699be0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/migrations.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,11 @@ func (comp *migrationsComponent) Reconcile(ctx *cu.Context) (cu.Result, error) {
176176
}
177177
// TODO resources?
178178

179+
// Remove the probes since they will rarely work.
180+
migrationContainer.ReadinessProbe = nil
181+
migrationContainer.LivenessProbe = nil
182+
migrationContainer.StartupProbe = nil
183+
179184
migrationPodSpec := templatePodSpec.DeepCopy()
180185
migrationPodSpec.Containers = []corev1.Container{*migrationContainer}
181186
migrationPodSpec.RestartPolicy = corev1.RestartPolicyNever

0 commit comments

Comments
 (0)