You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move git-auth secret creation from startPR (webhook handler) to
the reconciler via a new `secret-created` annotation. PipelineRuns
are now created with secret-created=false, and the reconciler
creates the secret and patches the annotation to true before the
PipelineRun proceeds.
This decouples secret lifecycle management from the webhook path,
enabling the reconciler to handle retries and error recovery. RBAC
is updated accordingly: secret create/update permissions move from
the controller role to the watcher role.
https://issues.redhat.com/browse/SRVKP-10877
Signed-off-by: Zaki Shaikh <zashaikh@redhat.com>
Assisted-by: Claude Opus 4.6 (via Claude Code)
// don't overshadow the pipelineRun creation error, just log
276
-
p.logger.Errorf("removing auto created secret: %s in namespace %s has failed: %w ", gitAuthSecretName, match.Repo.GetNamespace(), errDelSec)
277
-
}
278
-
}
279
238
// we need to make difference between markdown error and normal error that goes to namespace/controller stream
280
239
returnnil, fmt.Errorf("creating pipelinerun %s in namespace %s has failed.\n\nTekton Controller has reported this error: ```%w``` ", match.PipelineRun.GetGenerateName(),
281
240
match.Repo.GetNamespace(), err)
282
241
}
283
242
284
-
// update ownerRef of secret with pipelineRun, so that it gets cleanedUp with pipelineRun
0 commit comments