Skip to content

Commit

Permalink
[mod] postrun, prerun API에 tektonTaskParam을 body request로 받아 적용 (#405)
Browse files Browse the repository at this point in the history
  • Loading branch information
chanwook-lee authored Dec 22, 2023
1 parent 6687b1f commit 4b88491
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/apiserver/apis/v1/integrationconfigs/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 4b88491

Please sign in to comment.