Skip to content
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

KFLUXINFRA-802: Adding Node Selector and Tolerations in TektonConfig #4415

Merged

Conversation

manish-jangra
Copy link
Contributor

@manish-jangra manish-jangra commented Aug 29, 2024

Adding Node Selector and Tolerations in TektonConfig to make use of the default pod template for the PipelineRuns and TaskRuns.

Related Pull Request for Stage Member Cluster (m01) -

Copy link

openshift-ci bot commented Aug 29, 2024

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@manish-jangra
Copy link
Contributor Author

/test all

Copy link

openshift-ci bot commented Aug 29, 2024

@manish-jangra: No jobs can be run with /test all.
The following commands are available to trigger required jobs:

  • /test appstudio-e2e-tests
  • /test appstudio-load-test

The following commands are available to trigger optional jobs:

  • /test appstudio-hac-e2e-tests
  • /test appstudio-upgrade-tests

In response to this:

/test all

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@enarha
Copy link
Contributor

enarha commented Aug 29, 2024

@manish-jangra Adding kustomization patches in the per cluster resources directory is good if you want to test on a single cluster or if you want to have different values on each cluster. If you have the same values per cluster type (stage/prod) or for all clusters, the way to do it if add it just once per environment, development (used by the CI and developer) https://github.com/redhat-appstudio/infra-deployments/blob/main/components/pipeline-service/development/main-pipeline-service-configuration.yaml#L1478 , staging https://github.com/redhat-appstudio/infra-deployments/blob/main/components/pipeline-service/staging/base/main-pipeline-service-configuration.yaml#L1294 and production https://github.com/redhat-appstudio/infra-deployments/blob/main/components/pipeline-service/production/base/main-pipeline-service-configuration.yaml#L1445. Once you add your changes, you use the generate script to update the deploy.yaml files for all staging and production clusters.

@bamachrn
Copy link
Contributor

I agree with @enarha lets right the nodeselector in one place and patch it the deployconfigs for other clusters. so that we dont repeat the same codes.

@manish-jangra
Copy link
Contributor Author

@manish-jangra Adding kustomization patches in the per cluster resources directory is good if you want to test on a single cluster or if you want to have different values on each cluster. If you have the same values per cluster type (stage/prod) or for all clusters, the way to do it if add it just once per environment, development (used by the CI and developer) https://github.com/redhat-appstudio/infra-deployments/blob/main/components/pipeline-service/development/main-pipeline-service-configuration.yaml#L1478 , staging https://github.com/redhat-appstudio/infra-deployments/blob/main/components/pipeline-service/staging/base/main-pipeline-service-configuration.yaml#L1294 and production https://github.com/redhat-appstudio/infra-deployments/blob/main/components/pipeline-service/production/base/main-pipeline-service-configuration.yaml#L1445. Once you add your changes, you use the generate script to update the deploy.yaml files for all staging and production clusters.

@enarha I have made the changes as suggested. Please review, It should be good now.

Copy link
Contributor

@hugares hugares left a comment

Choose a reason for hiding this comment

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

/lgtm

Copy link

openshift-ci bot commented Aug 30, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hugares, manish-jangra

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

@enarha
Copy link
Contributor

enarha commented Sep 1, 2024

@manish-jangra The changes to staging and production are good. Please add the change to the development environment as well (https://github.com/redhat-appstudio/infra-deployments/blob/main/components/pipeline-service/development/main-pipeline-service-configuration.yaml#L1478). This is what the Konflux CI and manual deployments use and we want to keep it as close as possible to prod/stage, even if the change does not have real impact. There is no need to run the generate script on development change. Once done, the change is good to be merged IMO.

@openshift-ci openshift-ci bot removed the lgtm label Sep 2, 2024
@manish-jangra manish-jangra marked this pull request as ready for review September 2, 2024 07:36
@openshift-ci openshift-ci bot requested a review from adambkaplan September 2, 2024 07:36
Copy link
Contributor

@enarha enarha left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Sep 2, 2024
@manish-jangra manish-jangra merged commit 24306a6 into redhat-appstudio:main Sep 2, 2024
3 of 7 checks passed
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