Skip to content

Conversation

filariow
Copy link
Member

@openshift-ci openshift-ci bot requested review from enarha and ramessesii2 August 13, 2025 16:23
@filariow filariow marked this pull request as draft August 13, 2025 16:23
Copy link
Contributor

Code Review by Gemini

The changes introduce the custom-console-url-namespace setting across multiple production environment configurations for the pipeline service. This addition aims to fix a broken "Namespace" link in PR checks, as described in the commit message.

Overall, the changes are consistent and correctly formatted.

Review Summary:

  • No bugs or issues found.
  • The new custom-console-url-namespace entry is correctly added to all specified update-tekton-config-pac.yaml files.
  • The URL pattern https://<console-url>/ns/{{ namespace }} is consistent with the existing custom-console-url in each respective file and uses the expected {{ namespace }} placeholder.
  • YAML syntax and indentation are correct.

Suggested Improvements:

While the current changes are correct and functional, the repetition of adding the same pattern across multiple environment-specific files could be a point for future consideration in terms of configuration management. However, for this specific change, the approach is valid.

No specific line changes are suggested as the added lines are correct as implemented.

Signed-off-by: Francesco Ilario <[email protected]>
@filariow filariow marked this pull request as ready for review August 13, 2025 16:25
@openshift-ci openshift-ci bot requested a review from aThorp96 August 13, 2025 16:26
Copy link
Contributor

Code Review by Gemini

The changes introduce a new configuration setting custom-console-url-namespace to various production environment configurations for the pipeline service. This aims to fix a broken "Namespace" link in PR checks, directing users to the correct OpenShift console URL for a given namespace.

Overall, the change is well-intentioned and addresses a clear problem. However, there is a formatting issue in several deploy.yaml files that needs to be corrected.

Issues and Improvements:

1. YAML String Formatting (Bug)

In several deploy.yaml files, the newly added custom-console-url-namespace value is split across two lines with incorrect indentation. This will likely cause a YAML parsing error or result in an incorrect string value. YAML string values should typically be on a single line unless explicitly using multi-line string syntax (e.g., | or >). Given that this is a URL, it should be a single line.

Files affected:

  • components/pipeline-service/production/kflux-ocp-p01/deploy.yaml
  • components/pipeline-service/production/kflux-osp-p01/deploy.yaml
  • components/pipeline-service/production/kflux-prd-rh02/deploy.yaml
  • components/pipeline-service/production/kflux-prd-rh03/deploy.yaml
  • components/pipeline-service/production/kflux-rhel-p01/deploy.yaml
  • components/pipeline-service/production/stone-prd-rh01/deploy.yaml
  • components/pipeline-service/production/stone-prod-p01/deploy.yaml
  • components/pipeline-service/production/stone-prod-p02/deploy.yaml

Exact lines to change:

components/pipeline-service/production/kflux-ocp-p01/deploy.yaml

--- a/components/pipeline-service/production/kflux-ocp-p01/deploy.yaml
+++ b/components/pipeline-service/production/kflux-ocp-p01/deploy.yaml
@@ -2448,20 +2448,22 @@ spec:
             pipelines-as-code-watcher:
               spec:
                 replicas: 2
             pipelines-as-code-webhook:
               spec:
                 replicas: 2
         settings:
           application-name: Konflux OCP
           custom-console-name: Konflux OCP
           custom-console-url: https://konflux-ui.apps.kflux-ocp-p01.7ayg.p1.openshiftapps.com
-          custom-console-url-namespace: https://konflux-ui.apps.kflux-ocp-p01.7ayg.p1.openshiftapps.com/ns/{{
-            namespace }}
+          custom-console-url-namespace: https://konflux-ui.apps.kflux-ocp-p01.7ayg.p1.openshiftapps.com/ns/{{ namespace }}
           custom-console-url-pr-details: https://konflux-ui.apps.kflux-ocp-p01.7ayg.p1.openshiftapps.com/ns/{{
             namespace }}/pipelinerun/{{ pr }}
           custom-console-url-pr-tasklog: https://konflux-ui.apps.kflux-ocp-p01.7ayg.p1.openshiftapps.com/ns/{{
             namespace }}/pipelinerun/{{ pr }}/logs/{{ task }}
           secret-github-app-token-scoped: "false"
   profile: all
   pruner:
     disabled: false
     keep-since: 240
     resources:

components/pipeline-service/production/kflux-osp-p01/deploy.yaml

--- a/components/pipeline-service/production/kflux-osp-p01/deploy.yaml
+++ b/components/pipeline-service/production/kflux-osp-p01/deploy.yaml
@@ -2479,20 +2479,22 @@ spec:
             pipelines-as-code-watcher:
               spec:
                 replicas: 2
             pipelines-as-code-webhook:
               spec:
                 replicas: 2
         settings:
           application-name: Konflux kflux-osp-p01
           custom-console-name: Konflux kflux-osp-p01
           custom-console-url: https://konflux-ui.apps.kflux-osp-p01.yt45.p1.openshiftapps.com
-          custom-console-url-namespace: https://konflux-ui.apps.kflux-osp-p01.yt45.p1.openshiftapps.com/ns/{{
-            namespace }}
+          custom-console-url-namespace: https://konflux-ui.apps.kflux-osp-p01.yt45.p1.openshiftapps.com/ns/{{ namespace }}
           custom-console-url-pr-details: https://konflux-ui.apps.kflux-osp-p01.yt45.p1.openshiftapps.com/ns/{{
             namespace }}/pipelinerun/{{ pr }}
           custom-console-url-pr-tasklog: https://konflux-ui.apps.kflux-osp-p01.yt45.p1.openshiftapps.com/ns/{{
             namespace }}/pipelinerun/{{ pr }}/logs/{{ task }}
           remember-ok-to-test: "false"
   profile: all
   pruner:
     disabled: false
     keep-since: 240
     resources:

components/pipeline-service/production/kflux-prd-rh02/deploy.yaml

--- a/components/pipeline-service/production/kflux-prd-rh02/deploy.yaml
+++ b/components/pipeline-service/production/kflux-prd-rh02/deploy.yaml
@@ -2479,20 +2479,22 @@ spec:
             pipelines-as-code-watcher:
               spec:
                 replicas: 2
             pipelines-as-code-webhook:
               spec:
                 replicas: 2
         settings:
           application-name: Konflux kflux-prd-rh02
           custom-console-name: Konflux kflux-prd-rh02
           custom-console-url: https://konflux-ui.apps.kflux-prd-rh02.0fk9.p1.openshiftapps.com
-          custom-console-url-namespace: https://konflux-ui.apps.kflux-prd-rh02.0fk9.p1.openshiftapps.com/ns/{{
-            namespace }}
+          custom-console-url-namespace: https://konflux-ui.apps.kflux-prd-rh02.0fk9.p1.openshiftapps.com/ns/{{ namespace }}
           custom-console-url-pr-details: https://konflux-ui.apps.kflux-prd-rh02.0fk9.p1.openshiftapps.com/ns/{{
             namespace }}/pipelinerun/{{ pr }}
           custom-console-url-pr-tasklog: https://konflux-ui.apps.kflux-prd-rh02.0fk9.p1.openshiftapps.com/ns/{{
             namespace }}/pipelinerun/{{ pr }}/logs/{{ task }}
           secret-github-app-token-scoped: "false"
   profile: all
   pruner:
     disabled: false
     keep-since: 240
     resources:

components/pipeline-service/production/kflux-prd-rh03/deploy.yaml

--- a/components/pipeline-service/production/kflux-prd-rh03/deploy.yaml
+++ b/components/pipeline-service/production/kflux-prd-rh03/deploy.yaml
@@ -2479,20 +2479,22 @@ spec:
             pipelines-as-code-watcher:
               spec:
                 replicas: 2
             pipelines-as-code-webhook:
               spec:
                 replicas: 2
         settings:
           application-name: Konflux kflux-prd-rh03
           custom-console-name: Konflux kflux-prd-rh03
           custom-console-url: https://konflux-ui.apps.kflux-prd-rh03.nnv1.p1.openshiftapps.com
-          custom-console-url-namespace: https://konflux-ui.apps.kflux-prd-rh03.nnv1.p1.openshiftapps.com/ns/{{
-            namespace }}
+          custom-console-url-namespace: https://konflux-ui.apps.kflux-prd-rh03.nnv1.p1.openshiftapps.com/ns/{{ namespace }}
           custom-console-url-pr-details: https://konflux-ui.apps.kflux-prd-rh03.nnv1.p1.openshiftapps.com/ns/{{
             namespace }}/pipelinerun/{{ pr }}
           custom-console-url-pr-tasklog: https://konflux-ui.apps.kflux-prd-rh03.nnv1.p1.openshiftapps.com/ns/{{
             namespace }}/pipelinerun/{{ pr }}/logs/{{ task }}
           secret-github-app-token-scoped: "false"
   profile: all
   pruner:
     disabled: false
     keep-since: 240
     resources:

components/pipeline-service/production/kflux-rhel-p01/deploy.yaml

--- a/components/pipeline-service/production/kflux-rhel-p01/deploy.yaml
+++ b/components/pipeline-service/production/kflux-rhel-p01/deploy.yaml
@@ -2479,20 +2479,22 @@ spec:
             pipelines-as-code-watcher:
               spec:
                 replicas: 2
             pipelines-as-code-webhook:
               spec:
                 replicas: 2
         settings:
           application-name: Konflux kflux-rhel-p01
           custom-console-name: Konflux kflux-rhel-p01
           custom-console-url: https://konflux-ui.apps.kflux-rhel-p01.fc38.p1.openshiftapps.com
-          custom-console-url-namespace: https://konflux-ui.apps.kflux-rhel-p01.fc38.p1.openshiftapps.com/ns/{{
-            namespace }}
+          custom-console-url-namespace: https://konflux-ui.apps.kflux-rhel-p01.fc38.p1.openshiftapps.com/ns/{{ namespace }}
           custom-console-url-pr-details: https://konflux-ui.apps.kflux-rhel-p01.fc38.p1.openshiftapps.com/ns/{{
             namespace }}/pipelinerun/{{ pr }}
           custom-console-url-pr-tasklog: https://konflux-ui.apps.kflux-rhel-p01.fc38.p1.openshiftapps.com/ns/{{
             namespace }}/pipelinerun/{{ pr }}/logs/{{ task }}
           remember-ok-to-test: "false"
           secret-github-app-token-scoped: "false"
   profile: all
   pruner:
     disabled: false
     keep-since: 240

components/pipeline-service/production/stone-prd-rh01/deploy.yaml

--- a/components/pipeline-service/production/stone-prd-rh01/deploy.yaml
+++ b/components/pipeline-service/production/stone-prd-rh01/deploy.yaml
@@ -2448,20 +2448,22 @@ spec:
             pipelines-as-code-watcher:
               spec:
                 replicas: 2
             pipelines-as-code-webhook:
               spec:
                 replicas: 2
         settings:
           application-name: Red Hat Konflux
           custom-console-name: Red Hat Konflux
           custom-console-url: https://konflux-ui.apps.stone-prd-rh01.pg1f.p1.openshiftapps.com/
-          custom-console-url-namespace: https://konflux-ui.apps.stone-prd-rh01.pg1f.p1.openshiftapps.com/ns/{{
-            namespace }}
+          custom-console-url-namespace: https://konflux-ui.apps.stone-prd-rh01.pg1f.p1.openshiftapps.com/ns/{{ namespace }}
           custom-console-url-pr-details: https://konflux-ui.apps.stone-prd-rh01.pg1f.p1.openshiftapps.com/ns/{{
             namespace }}/pipelinerun/{{ pr }}
           custom-console-url-pr-tasklog: https://konflux-ui.apps.stone-prd-rh01.pg1f.p1.openshiftapps.com/ns/{{
             namespace }}/pipelinerun/{{ pr }}/logs/{{ task }}
           remember-ok-to-test: "false"
           secret-github-app-token-scoped: "false"
   profile: all
   pruner:
     disabled: false
     keep-since: 240

components/pipeline-service/production/stone-prod-p01/deploy.yaml

--- a/components/pipeline-service/production/stone-prod-p01/deploy.yaml
+++ b/components/pipeline-service/production/stone-prod-p01/deploy.yaml
@@ -2448,20 +2448,22 @@ spec:
             pipelines-as-code-watcher:
               spec:
                 replicas: 2
             pipelines-as-code-webhook:
               spec:
                 replicas: 2
         settings:
           application-name: Konflux Production Internal
           custom-console-name: Konflux Production Internal
           custom-console-url: https://konflux-ui.apps.stone-prod-p01.wcfb.p1.openshiftapps.com
-          custom-console-url-namespace: https://konflux-ui.apps.stone-prod-p01.wcfb.p1.openshiftapps.com/ns/{{
-            namespace }}
+          custom-console-url-namespace: https://konflux-ui.apps.stone-prod-p01.wcfb.p1.openshiftapps.com/ns/{{ namespace }}
           custom-console-url-pr-details: https://konflux-ui.apps.stone-prod-p01.wcfb.p1.openshiftapps.com/ns/{{
             namespace }}/pipelinerun/{{ pr }}
           custom-console-url-pr-tasklog: https://konflux-ui.apps.stone-prod-p01.wcfb.p1.openshiftapps.com/ns/{{
             namespace }}/pipelinerun/{{ pr }}/logs/{{ task }}
           remember-ok-to-test: "false"
           secret-github-app-token-scoped: "false"
   profile: all
   pruner:
     disabled: false
     keep-since: 240

components/pipeline-service/production/stone-prod-p02/deploy.yaml

--- a/components/pipeline-service/production/stone-prod-p02/deploy.yaml
+++ b/components/pipeline-service/production/stone-prod-p02/deploy.yaml
@@ -2448,20 +2448,22 @@ spec:
             pipelines-as-code-watcher:
               spec:
                 replicas: 2
             pipelines-as-code-webhook:
               spec:
                 replicas: 2
         settings:
           application-name: Konflux Production Internal
           custom-console-name: Konflux Production Internal
           custom-console-url: https://konflux-ui.apps.stone-prod-p02.hjvn.p1.openshiftapps.com
-          custom-console-url-namespace: https://konflux-ui.apps.stone-prod-p02.hjvn.p1.openshiftapps.com/ns/{{
-            namespace }}
+          custom-console-url-namespace: https://konflux-ui.apps.stone-prod-p02.hjvn.p1.openshiftapps.com/ns/{{ namespace }}
           custom-console-url-pr-details: https://konflux-ui.apps.stone-prod-p02.hjvn.p1.openshiftapps.com/ns/{{
             namespace }}/pipelinerun/{{ pr }}
           custom-console-url-pr-tasklog: https://konflux-ui.apps.stone-prod-p02.hjvn.p1.openshiftapps.com/ns/{{
             namespace }}/pipelinerun/{{ pr }}/logs/{{ task }}
           remember-ok-to-test: "false"
           secret-github-app-token-scoped: "false"
   profile: all
   pruner:
     disabled: false
     keep-since: 240

Copy link
Contributor

@aThorp96 aThorp96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Thanks for this

@manish-jangra
Copy link
Contributor

/approve
/lgtm

Copy link

openshift-ci bot commented Aug 26, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aThorp96, filariow, manish-jangra, mshaposhnik

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit cdf6eff into redhat-appstudio:main Aug 26, 2025
6 checks passed
@filariow filariow deleted the fix-namespace-link-pac branch August 26, 2025 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants