Skip to content

Commit

Permalink
Fix PaC detection for Red Hat's Sandbox cluster
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 18, 2024
1 parent c093c38 commit 7776767
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 7776767

Please sign in to comment.