From 5ed7bb2ce2f85a275f4dcfed25b040641e84a920 Mon Sep 17 00:00:00 2001 From: Jarek Cwiklik Date: Wed, 30 Apr 2025 14:36:37 -0400 Subject: [PATCH 1/3] run pipeline in the same ns as the CR Signed-off-by: Jarek Cwiklik --- beeai/internal/controller/agentbuild_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beeai/internal/controller/agentbuild_controller.go b/beeai/internal/controller/agentbuild_controller.go index 2e6867b4..68c72091 100644 --- a/beeai/internal/controller/agentbuild_controller.go +++ b/beeai/internal/controller/agentbuild_controller.go @@ -320,7 +320,7 @@ func (r *AgentBuildReconciler) createPipelineRun(ctx context.Context, agentBuild ObjectMeta: metav1.ObjectMeta{ Name: pipelineRunName, - Namespace: "default", + Namespace: agentBuild.Namespace, }, Spec: tektonv1.PipelineRunSpec{ PipelineSpec: &tektonv1.PipelineSpec{ From 701765f9a814ba8c9759ca20e32782f32ba580b4 Mon Sep 17 00:00:00 2001 From: Jarek Cwiklik Date: Wed, 30 Apr 2025 14:38:07 -0400 Subject: [PATCH 2/3] added new ns to trigger build Signed-off-by: Jarek Cwiklik --- .github/workflows/beeai-build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/beeai-build.yml b/.github/workflows/beeai-build.yml index 9eccebf5..828a04fe 100644 --- a/.github/workflows/beeai-build.yml +++ b/.github/workflows/beeai-build.yml @@ -14,6 +14,7 @@ on: branches: - main - tekton-pod-cleanup + - namespace-support paths: - 'beeai/**' pull_request: From 842c9b8014dea15d7a296cc2f46462c5c4f77949 Mon Sep 17 00:00:00 2001 From: Jarek Cwiklik Date: Wed, 30 Apr 2025 14:39:03 -0400 Subject: [PATCH 3/3] force the build Signed-off-by: Jarek Cwiklik --- beeai/internal/controller/agentbuild_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beeai/internal/controller/agentbuild_controller.go b/beeai/internal/controller/agentbuild_controller.go index 68c72091..e5207823 100644 --- a/beeai/internal/controller/agentbuild_controller.go +++ b/beeai/internal/controller/agentbuild_controller.go @@ -294,7 +294,7 @@ func (r *AgentBuildReconciler) createPipelineRun(ctx context.Context, agentBuild "pipelineRunName", agentBuild.Status.PipelineRunName) return ctrl.Result{}, err } - logger.Info("createPipelineRun", "created push secret", pushRepoSecret) + logger.Info("- createPipelineRun", "created push secret", pushRepoSecret) pipelineRunName := fmt.Sprintf("%s-%s", agentBuild.Name, generateShortUID()) pv, err := r.createPersistentVolume(ctx, agentBuild, pipelineRunName, "5Gi", "ReadWriteOnce", "/mnt/data")