Skip to content

Refactor pipelines as code config Kustomization to DRY common values #6851

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1860,6 +1860,14 @@ spec:
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-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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
---
- op: add
path: /spec/platforms/openshift/pipelinesAsCode/settings
value:
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-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"
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/application-name
value: Red Hat Konflux
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-name
value: Red Hat Konflux
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-url
value: https://konflux-ui.apps.stone-prd-rh01.pg1f.p1.openshiftapps.com/
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-url-pr-details
value: https://konflux-ui.apps.stone-prd-rh01.pg1f.p1.openshiftapps.com/ns/{{ namespace }}/pipelinerun/{{ pr }}
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-url-pr-tasklog
value: https://konflux-ui.apps.stone-prd-rh01.pg1f.p1.openshiftapps.com/ns/{{ namespace }}/pipelinerun/{{ pr }}/logs/{{ task }}
Original file line number Diff line number Diff line change
Expand Up @@ -2451,6 +2451,7 @@ spec:
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 }}
remember-ok-to-test: "false"
secret-github-app-token-scoped: "false"
profile: all
pruner:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
---
- op: add
path: /spec/platforms/openshift/pipelinesAsCode/settings
value:
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-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"
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/application-name
value: Konflux OCP
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-name
value: Konflux OCP
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-url
value: https://konflux-ui.apps.kflux-ocp-p01.7ayg.p1.openshiftapps.com
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-url-pr-details
value: https://konflux-ui.apps.kflux-ocp-p01.7ayg.p1.openshiftapps.com/ns/{{ namespace }}/pipelinerun/{{ pr }}
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-url-pr-tasklog
value: https://konflux-ui.apps.kflux-ocp-p01.7ayg.p1.openshiftapps.com/ns/{{ namespace }}/pipelinerun/{{ pr }}/logs/{{ task }}
Original file line number Diff line number Diff line change
Expand Up @@ -2482,6 +2482,7 @@ spec:
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 }}
remember-ok-to-test: "false"
secret-github-app-token-scoped: "false"
profile: all
pruner:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
---
- op: add
path: /spec/platforms/openshift/pipelinesAsCode/settings
value:
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-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"
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/application-name
value: Konflux kflux-prd-rh02
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-name
value: Konflux kflux-prd-rh02
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-url
value: https://konflux-ui.apps.kflux-prd-rh02.0fk9.p1.openshiftapps.com
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-url-pr-details
value: https://konflux-ui.apps.kflux-prd-rh02.0fk9.p1.openshiftapps.com/ns/{{ namespace }}/pipelinerun/{{ pr }}
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-url-pr-tasklog
value: https://konflux-ui.apps.kflux-prd-rh02.0fk9.p1.openshiftapps.com/ns/{{ namespace }}/pipelinerun/{{ pr }}/logs/{{ task }}
Original file line number Diff line number Diff line change
Expand Up @@ -2482,6 +2482,7 @@ spec:
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 }}
remember-ok-to-test: "false"
secret-github-app-token-scoped: "false"
profile: all
pruner:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
---
- op: add
path: /spec/platforms/openshift/pipelinesAsCode/settings
value:
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-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"
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/application-name
value: Konflux kflux-prd-rh03
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-name
value: Konflux kflux-prd-rh03
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-url
value: https://konflux-ui.apps.kflux-prd-rh03.nnv1.p1.openshiftapps.com
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-url-pr-details
value: https://konflux-ui.apps.kflux-prd-rh03.nnv1.p1.openshiftapps.com/ns/{{ namespace }}/pipelinerun/{{ pr }}
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-url-pr-tasklog
value: https://konflux-ui.apps.kflux-prd-rh03.nnv1.p1.openshiftapps.com/ns/{{ namespace }}/pipelinerun/{{ pr }}/logs/{{ task }}
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
---
- op: add
path: /spec/platforms/openshift/pipelinesAsCode/settings
value:
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-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"
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/application-name
value: Konflux kflux-rhel-p01
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-name
value: Konflux kflux-rhel-p01
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-url
value: https://konflux-ui.apps.kflux-rhel-p01.fc38.p1.openshiftapps.com
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-url-pr-details
value: https://konflux-ui.apps.kflux-rhel-p01.fc38.p1.openshiftapps.com/ns/{{ namespace }}/pipelinerun/{{ pr }}
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-url-pr-tasklog
value: https://konflux-ui.apps.kflux-rhel-p01.fc38.p1.openshiftapps.com/ns/{{ namespace }}/pipelinerun/{{ pr }}/logs/{{ task }}
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
---
- op: add
path: /spec/platforms/openshift/pipelinesAsCode/settings
value:
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-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"
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/application-name
value: Konflux Production Internal
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-name
value: Konflux Production Internal
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-url
value: https://konflux-ui.apps.stone-prod-p01.wcfb.p1.openshiftapps.com
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-url-pr-details
value: https://konflux-ui.apps.stone-prod-p01.wcfb.p1.openshiftapps.com/ns/{{ namespace }}/pipelinerun/{{ pr }}
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-url-pr-tasklog
value: https://konflux-ui.apps.stone-prod-p01.wcfb.p1.openshiftapps.com/ns/{{ namespace }}/pipelinerun/{{ pr }}/logs/{{ task }}
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
---
- op: add
path: /spec/platforms/openshift/pipelinesAsCode/settings
value:
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-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"
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/application-name
value: Konflux Production Internal
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-name
value: Konflux Production Internal
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-url
value: https://konflux-ui.apps.stone-prod-p02.hjvn.p1.openshiftapps.com
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-url-pr-details
value: https://konflux-ui.apps.stone-prod-p02.hjvn.p1.openshiftapps.com/ns/{{ namespace }}/pipelinerun/{{ pr }}
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-url-pr-tasklog
value: https://konflux-ui.apps.stone-prod-p02.hjvn.p1.openshiftapps.com/ns/{{ namespace }}/pipelinerun/{{ pr }}/logs/{{ task }}
Original file line number Diff line number Diff line change
Expand Up @@ -2001,10 +2001,10 @@ spec:
application-name: Konflux Staging
custom-console-name: Konflux Staging
custom-console-url: https://konflux-ui.apps.stone-stg-rh01.l2vh.p1.openshiftapps.com/
custom-console-url-pr-details: https://konflux-ui.apps.stone-stg-rh01.l2vh.p1.openshiftapps.com/ns/{{
namespace }}/pipelinerun/{{ pr }}
custom-console-url-pr-tasklog: https://konflux-ui.apps.stone-stg-rh01.l2vh.p1.openshiftapps.com/ns/{{
namespace }}/pipelinerun/{{ pr }}/logs/{{ task }}
custom-console-url-pr-details: https://konflux-ui.apps.stone-stg-rh01.l2vh.p1.openshiftapps.com/ns/{{namespace }}/pipelinerun/{{ pr }}
custom-console-url-pr-tasklog: https://konflux-ui.apps.stone-stg-rh01.l2vh.p1.openshiftapps.com/ns/{{namespace }}/pipelinerun/{{ pr }}/logs/{{ task }}
remember-ok-to-test: "false"
secret-github-app-token-scoped: "false"
profile: all
pruner:
disabled: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
---
- op: add
path: /spec/platforms/openshift/pipelinesAsCode/settings
value:
application-name: Konflux Staging Internal
custom-console-name: Konflux Staging Internal
custom-console-url: https://konflux-ui.apps.stone-stage-p01.hpmt.p1.openshiftapps.com
custom-console-url-pr-details: https://konflux-ui.apps.stone-stage-p01.hpmt.p1.openshiftapps.com/ns/{{ namespace }}/pipelinerun/{{ pr }}
custom-console-url-pr-tasklog: https://konflux-ui.apps.stone-stage-p01.hpmt.p1.openshiftapps.com/ns/{{ namespace }}/pipelinerun/{{ pr }}/logs/{{ task }}
remember-ok-to-test: "false"
secret-github-app-token-scoped: "false"
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/application-name
value: Konflux Staging Internal
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-name
value: Konflux Staging Internal
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-url
value: https://konflux-ui.apps.stone-stage-p01.hpmt.p1.openshiftapps.com
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-url-pr-details
value: https://konflux-ui.apps.stone-stage-p01.hpmt.p1.openshiftapps.com/ns/{{ namespace }}/pipelinerun/{{ pr }}
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-url-pr-tasklog
value: https://konflux-ui.apps.stone-stage-p01.hpmt.p1.openshiftapps.com/ns/{{ namespace }}/pipelinerun/{{ pr }}/logs/{{ task }}
10 changes: 6 additions & 4 deletions components/pipeline-service/staging/stone-stg-rh01/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2598,10 +2598,12 @@ spec:
application-name: Konflux Staging
custom-console-name: Konflux Staging
custom-console-url: https://konflux-ui.apps.stone-stg-rh01.l2vh.p1.openshiftapps.com/
custom-console-url-pr-details: https://konflux-ui.apps.stone-stg-rh01.l2vh.p1.openshiftapps.com/ns/{{
namespace }}/pipelinerun/{{ pr }}
custom-console-url-pr-tasklog: https://konflux-ui.apps.stone-stg-rh01.l2vh.p1.openshiftapps.com/ns/{{
namespace }}/pipelinerun/{{ pr }}/logs/{{ task }}
custom-console-url-pr-details: https://konflux-ui.apps.stone-stg-rh01.l2vh.p1.openshiftapps.com/ns/{{namespace
}}/pipelinerun/{{ pr }}
custom-console-url-pr-tasklog: https://konflux-ui.apps.stone-stg-rh01.l2vh.p1.openshiftapps.com/ns/{{namespace
}}/pipelinerun/{{ pr }}/logs/{{ task }}
remember-ok-to-test: "false"
secret-github-app-token-scoped: "false"
profile: all
pruner:
disabled: true
Expand Down
2 changes: 2 additions & 0 deletions hack/new-cluster/templates/pipeline-service/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2481,6 +2481,8 @@ spec:
{% endraw %}
custom-console-url-pr-tasklog: https://konflux-ui.apps.{{ longname }}.openshiftapps.com/ns/{% raw %}{{ namespace }}/pipelinerun/{{ pr }}/logs/{{ task }}
{% endraw %}
remember-ok-to-test: "false"
secret-github-app-token-scoped: "false"
profile: all
pruner:
disabled: false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
---
- op: add
path: /spec/platforms/openshift/pipelinesAsCode/settings
value:
application-name: Konflux {{ shortname }}
custom-console-name: Konflux {{ shortname }}
custom-console-url: https://konflux-ui.apps.{{ longname }}.openshiftapps.com
custom-console-url-pr-details: https://konflux-ui.apps.{{ longname }}.openshiftapps.com/ns/{% raw %}{{ namespace }}/pipelinerun/{{ pr }}
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/application-name
value: Konflux {{ shortname }}
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-name
value: Konflux {{ shortname }}
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-url
value: https://konflux-ui.apps.{{ longname }}.openshiftapps.com
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-url-pr-details
value: https://konflux-ui.apps.{{ longname }}.openshiftapps.com/ns/{% raw %}{{ namespace }}/pipelinerun/{{ pr }}
{% endraw %}
custom-console-url-pr-tasklog: https://konflux-ui.apps.{{ longname }}.openshiftapps.com/ns/{% raw %}{{ namespace }}/pipelinerun/{{ pr }}/logs/{{ task }}
- op: replace
path: /spec/platforms/openshift/pipelinesAsCode/settings/custom-console-url-pr-tasklog
value: https://konflux-ui.apps.{{ longname }}.openshiftapps.com/ns/{% raw %}{{ namespace }}/pipelinerun/{{ pr }}/logs/{{ task }}
{% endraw %}
remember-ok-to-test: "false"