Skip to content

Commit

Permalink
Fix PaC detection for Red Hat's Sandbox cluster (#2429)
Browse files Browse the repository at this point in the history
The sandbox cluster installs PaC cm into tekton-pipelines NS.

Signed-off-by: Matej Vašek <matejvasek@gmail.com>
  • Loading branch information
matejvasek committed Jul 19, 2024
1 parent c093c38 commit aed23cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pipelines/tekton/pac/pac.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func DetectPACInstallation(ctx context.Context) (bool, string, error) {
installed = true

// First search namespaces that usually contains PaC, this check may be done even by unprivileged user.
for _, suspectedNS := range []string{"pipelines-as-code", "openshift-pipelines"} {
for _, suspectedNS := range []string{"pipelines-as-code", "openshift-pipelines", "tekton-pipelines"} {
_, e := clientK8s.CoreV1().ConfigMaps(suspectedNS).Get(ctx, infoConfigMap, metav1.GetOptions{})
if e == nil {
return installed, suspectedNS, nil
Expand Down

0 comments on commit aed23cf

Please sign in to comment.