From 4b884911e13c0bc444619bfb614e8456273b78a2 Mon Sep 17 00:00:00 2001 From: chanwook-lee <108053113+chanwook-lee@users.noreply.github.com> Date: Fri, 22 Dec 2023 11:49:29 +0900 Subject: [PATCH] =?UTF-8?q?[mod]=20postrun,=20prerun=20API=EC=97=90=20tekt?= =?UTF-8?q?onTaskParam=EC=9D=84=20body=20request=EB=A1=9C=20=EB=B0=9B?= =?UTF-8?q?=EC=95=84=20=EC=A0=81=EC=9A=A9=20(#405)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/apiserver/apis/v1/integrationconfigs/run.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/apiserver/apis/v1/integrationconfigs/run.go b/pkg/apiserver/apis/v1/integrationconfigs/run.go index b8b3bc8..6bc9823 100644 --- a/pkg/apiserver/apis/v1/integrationconfigs/run.go +++ b/pkg/apiserver/apis/v1/integrationconfigs/run.go @@ -170,6 +170,7 @@ func updateIntegrationConfigPost(ic *cicdv1.IntegrationConfig, userReqBody *cicd return nil, errors.New("JobName must be set") } + existingJob = nil for i, job := range *targetJob { if job.Name == jobName { existingJob = &(*targetJob)[i] @@ -210,6 +211,7 @@ func updateIntegrationConfigPre(ic *cicdv1.IntegrationConfig, userReqBody *cicdv return nil, errors.New("JobName must be set") } + existingJob = nil for i, job := range *targetJob { if job.Name == jobName { existingJob = &(*targetJob)[i]