From 045c5bbd7c86f994410cdc5273f134eacf998c81 Mon Sep 17 00:00:00 2001 From: Dario Tranchitella Date: Mon, 11 Dec 2023 18:07:32 +0100 Subject: [PATCH] fix(migrate): preventing 63 characters pod name limit Signed-off-by: Dario Tranchitella --- internal/resources/datastore/datastore_migrate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/resources/datastore/datastore_migrate.go b/internal/resources/datastore/datastore_migrate.go index e5f83647..ccabf8e3 100644 --- a/internal/resources/datastore/datastore_migrate.go +++ b/internal/resources/datastore/datastore_migrate.go @@ -43,7 +43,7 @@ func (d *Migrate) Define(ctx context.Context, tenantControlPlane *kamajiv1alpha1 d.job = &batchv1.Job{ ObjectMeta: metav1.ObjectMeta{ - Name: fmt.Sprintf("migrate-%s-%s", tenantControlPlane.GetNamespace(), tenantControlPlane.GetName()), + Name: fmt.Sprintf("migrate-%s", tenantControlPlane.UID), Namespace: d.KamajiNamespace, }, }