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

Conversation

aThorp96
Copy link
Contributor

Previously every cluster used a kustomize patch to add the PaC settings object to the TektonConfig. Since most of the values were unique per cluster this was fine. However as global settings like remember-ok-to-test and secret-github-app-token-scope have been set, there is no need to duplicate the entire settings block per cluster. Instead, we can use Kustomize to override just the settings which are cluster-specific

Please note that the after refactoring the settings there are no substantive changes to the PaC config in each deployment, except for several clusters in which remember-ok-to-test was not propogated (kflux-ocp-p01, kflux-prd-rh02, kflux-prd-rh03`, and all but one staging cluster).

Previously every cluster used a kustomize patch to add the PaC settings
object to the TektonConfig. Since most of the values were unique per
cluster this was fine. However as global settings like `remember-ok-to-test`
and `secret-github-app-token-scope` have been set, there is no need to
duplicate the entire settings block per cluster. Instead, we can
use Kustomize to override just the settings which are cluster-specific
@openshift-ci openshift-ci bot requested review from ramessesii2 and Roming22 June 24, 2025 17:45
Copy link

openshift-ci bot commented Jun 24, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: aThorp96
Once this PR has been reviewed and has the lgtm label, please assign johnmcollier for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant