Repository: tektoncd/operator
Pull request #708 (2022-03-21 14:06:39)

This will fix scheduling the cron jobs pod on infra node if configured
This will fix scheduling the cron jobs pod on infra node if configured in TektonConfig CR
1. Modified the checkAndCreate function to also check if there is a change
   in TektonConfig.Spec.Config
2. Adding NodeSelector and Tolerations while creating CronJob
3. Added unit test TestNodeSelectorChange to check if nodeSelector and Toleration change creates a new Cron Job

# Changes

<!-- 🎉🎉🎉 Thank you for the PR!!! 🎉🎉🎉 -->

<!-- Describe your changes here- ideally you can get that description straight from
your descriptive commit message(s)! -->

# Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

- [x] Includes [tests](https://github.com/tektoncd/community/blob/master/standards.md#principles) (if functionality changed/added)
- [ ] Includes [docs](https://github.com/tektoncd/community/blob/master/standards.md#principles) (if user facing)
- [x] Commit messages follow [commit message best practices](https://github.com/tektoncd/community/blob/master/standards.md#commit-messages)

_See [the contribution guide](https://github.com/tektoncd/operator/blob/master/CONTRIBUTING.md) for more details._

# Release Notes

<!--
Describe any user facing changes here, or delete this block.

Examples of user facing changes:
- API changes
- Bug fixes
- Any changes in behavior
- Changes requiring upgrade notices or deprecation warnings

For pull requests with a release note:

```release-note
Your release note here
```

For pull requests that require additional action from users switching to the new release, include the string "action required" (case insensitive) in the release note:

```release-note
action required: your release note here
```

For pull requests that don't need to be mentioned at release time, use the `/release-note-none` Prow command to add the `release-note-none` label to the PR. You can also write the string "NONE" as a release note in your PR description:

```release-note
NONE
```
-->


tekton-robot: [APPROVALNOTIFIER] This PR is **NOT APPROVED**

This pull-request has been approved by:
To complete the [pull request process](https://git.k8s.io/community/contributors/guide/owners.md#the-code-review-process), please assign **houshengbo**
You can assign the PR to them by writing `/assign @houshengbo` in a comment when ready.

The full list of commands accepted by this bot can be found [here](https://go.k8s.io/bot-commands?repo=tektoncd%2Foperator).

<details open>
Needs approval from an approver in each of these files:

- **[OWNERS](https://github.com/tektoncd/operator/blob/main/OWNERS)**

Approvers can indicate their approval by writing `/approve` in a comment
Approvers can cancel approval by writing `/approve cancel` in a comment
</details>
<!-- META={"approvers":["houshengbo"]} -->
tekton-robot: @rupalibehera: The following test **failed**, say `/retest` to rerun them all:

Test name | Commit | Details | Rerun command
--- | --- | --- | ---
pull-tekton-operator-unit-tests | 025eb6766dd726a559b286d7fec4f7d347efc0f2 | [link](https://tekton-releases.appspot.com/build/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-unit-tests/1505908817903226883/) | `/test pull-tekton-operator-unit-tests`

[Full PR test history](https://tekton-releases.appspot.com/pr/tektoncd_operator/708). [Your PR dashboard](https://prow.tekton.dev/pr/rupalibehera).

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
tekton-robot: @rupalibehera: The following test **failed**, say `/retest` to rerun them all:

Test name | Commit | Details | Rerun command
--- | --- | --- | ---
pull-tekton-operator-unit-tests | 025eb6766dd726a559b286d7fec4f7d347efc0f2 | [link](https://tekton-releases.appspot.com/build/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-unit-tests/1505908817903226883/) | `/test pull-tekton-operator-unit-tests`

[Full PR test history](https://tekton-releases.appspot.com/pr/tektoncd_operator/708). [Your PR dashboard](https://prow.tekton.dev/pr/rupalibehera).

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
tekton-robot: @rupalibehera: The following tests **failed**, say `/retest` to rerun them all:

Test name | Commit | Details | Rerun command
--- | --- | --- | ---
pull-tekton-operator-unit-tests | 025eb6766dd726a559b286d7fec4f7d347efc0f2 | [link](https://tekton-releases.appspot.com/build/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-unit-tests/1505908817903226883/) | `/test pull-tekton-operator-unit-tests`
pull-tekton-operator-build-tests | 025eb6766dd726a559b286d7fec4f7d347efc0f2 | [link](https://tekton-releases.appspot.com/build/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-build-tests/1505908817903226880/) | `/test pull-tekton-operator-build-tests`

[Full PR test history](https://tekton-releases.appspot.com/pr/tektoncd_operator/708). [Your PR dashboard](https://prow.tekton.dev/pr/rupalibehera).

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
tekton-robot: @rupalibehera: The following tests **failed**, say `/retest` to rerun them all:

Test name | Commit | Details | Rerun command
--- | --- | --- | ---
pull-tekton-operator-unit-tests | 025eb6766dd726a559b286d7fec4f7d347efc0f2 | [link](https://tekton-releases.appspot.com/build/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-unit-tests/1505908817903226883/) | `/test pull-tekton-operator-unit-tests`
pull-tekton-operator-build-tests | 025eb6766dd726a559b286d7fec4f7d347efc0f2 | [link](https://tekton-releases.appspot.com/build/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-build-tests/1505908817903226880/) | `/test pull-tekton-operator-build-tests`

[Full PR test history](https://tekton-releases.appspot.com/pr/tektoncd_operator/708). [Your PR dashboard](https://prow.tekton.dev/pr/rupalibehera).

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
tekton-robot: The following is the coverage report on the affected files.
Say `/test pull-tekton-operator-go-coverage` to re-run this coverage report

File | Old Coverage | New Coverage | Delta
---- |:------------:|:------------:|:-----:
[pkg/reconciler/common/prune.go](https://storage.cloud.google.com/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-go-coverage/1505911209050771458/artifacts/line-cov.html#file0) | 79.9% | 79.3% | -0.6

tekton-robot: @rupalibehera: The following test **failed**, say `/retest` to rerun them all:

Test name | Commit | Details | Rerun command
--- | --- | --- | ---
pull-tekton-operator-unit-tests | 56868be8c0215f301ac055bf61fade89c451b084 | [link](https://tekton-releases.appspot.com/build/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-unit-tests/1505911209050771459/) | `/test pull-tekton-operator-unit-tests`

[Full PR test history](https://tekton-releases.appspot.com/pr/tektoncd_operator/708). [Your PR dashboard](https://prow.tekton.dev/pr/rupalibehera).

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
tekton-robot: @rupalibehera: The following tests **failed**, say `/retest` to rerun them all:

Test name | Commit | Details | Rerun command
--- | --- | --- | ---
pull-tekton-operator-build-tests | 025eb6766dd726a559b286d7fec4f7d347efc0f2 | [link](https://tekton-releases.appspot.com/build/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-build-tests/1505908817903226880/) | `/test pull-tekton-operator-build-tests`
pull-tekton-operator-unit-tests | 56868be8c0215f301ac055bf61fade89c451b084 | [link](https://tekton-releases.appspot.com/build/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-unit-tests/1505911209050771459/) | `/test pull-tekton-operator-unit-tests`

[Full PR test history](https://tekton-releases.appspot.com/pr/tektoncd_operator/708). [Your PR dashboard](https://prow.tekton.dev/pr/rupalibehera).

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
tekton-robot: [APPROVALNOTIFIER] This PR is **NOT APPROVED**

This pull-request has been approved by:
To complete the [pull request process](https://git.k8s.io/community/contributors/guide/owners.md#the-code-review-process), please assign **concaf**
You can assign the PR to them by writing `/assign @concaf` in a comment when ready.

The full list of commands accepted by this bot can be found [here](https://go.k8s.io/bot-commands?repo=tektoncd%2Foperator).

<details open>
Needs approval from an approver in each of these files:

- **[OWNERS](https://github.com/tektoncd/operator/blob/main/OWNERS)**

Approvers can indicate their approval by writing `/approve` in a comment
Approvers can cancel approval by writing `/approve cancel` in a comment
</details>
<!-- META={"approvers":["concaf"]} -->
tekton-robot: The following is the coverage report on the affected files.
Say `/test pull-tekton-operator-go-coverage` to re-run this coverage report

File | Old Coverage | New Coverage | Delta
---- |:------------:|:------------:|:-----:
[pkg/reconciler/common/prune.go](https://storage.cloud.google.com/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-go-coverage/1511647192123707393/artifacts/line-cov.html#file0) | 79.9% | 78.3% | -1.6

tekton-robot: @rupalibehera: The following test **failed**, say `/retest` to rerun them all:

Test name | Commit | Details | Rerun command
--- | --- | --- | ---
pull-tekton-operator-build-tests | 228c4a43f03c0b81b3dd11d3ff0b03271ed435d6 | [link](https://tekton-releases.appspot.com/build/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-build-tests/1511647192127901697/) | `/test pull-tekton-operator-build-tests`

[Full PR test history](https://tekton-releases.appspot.com/pr/tektoncd_operator/708). [Your PR dashboard](https://prow.tekton.dev/pr/rupalibehera).

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
tekton-robot: @rupalibehera: The following test **failed**, say `/retest` to rerun them all:

Test name | Commit | Details | Rerun command
--- | --- | --- | ---
pull-tekton-operator-build-tests | 228c4a43f03c0b81b3dd11d3ff0b03271ed435d6 | [link](https://tekton-releases.appspot.com/build/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-build-tests/1511647192127901697/) | `/test pull-tekton-operator-build-tests`

[Full PR test history](https://tekton-releases.appspot.com/pr/tektoncd_operator/708). [Your PR dashboard](https://prow.tekton.dev/pr/rupalibehera).

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
rupalibehera: @pradeepitm12 @nikhil-thomas could you guys take a look again 
tekton-robot: The following is the coverage report on the affected files.
Say `/test pull-tekton-operator-go-coverage` to re-run this coverage report

File | Old Coverage | New Coverage | Delta
---- |:------------:|:------------:|:-----:
[pkg/reconciler/common/prune.go](https://storage.cloud.google.com/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-go-coverage/1512407449095639040/artifacts/line-cov.html#file0) | 79.9% | 78.6% | -1.3

tekton-robot: The following is the coverage report on the affected files.
Say `/test pull-tekton-operator-go-coverage` to re-run this coverage report

File | Old Coverage | New Coverage | Delta
---- |:------------:|:------------:|:-----:
[pkg/reconciler/common/prune.go](https://storage.cloud.google.com/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-go-coverage/1517075205044834307/artifacts/line-cov.html#file0) | 79.9% | 79.4% | -0.5

tekton-robot: The following is the coverage report on the affected files.
Say `/test pull-tekton-operator-go-coverage` to re-run this coverage report

File | Old Coverage | New Coverage | Delta
---- |:------------:|:------------:|:-----:
[pkg/reconciler/common/prune.go](https://storage.cloud.google.com/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-go-coverage/1517076211958812672/artifacts/line-cov.html#file0) | 79.9% | 79.4% | -0.5

tekton-robot: The following is the coverage report on the affected files.
Say `/test pull-tekton-operator-go-coverage` to re-run this coverage report

File | Old Coverage | New Coverage | Delta
---- |:------------:|:------------:|:-----:
[pkg/reconciler/common/prune.go](https://storage.cloud.google.com/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-go-coverage/1517423375339753474/artifacts/line-cov.html#file0) | 79.9% | 79.4% | -0.5

tekton-robot: The following is the coverage report on the affected files.
Say `/test pull-tekton-operator-go-coverage` to re-run this coverage report

File | Old Coverage | New Coverage | Delta
---- |:------------:|:------------:|:-----:
[pkg/reconciler/common/prune.go](https://storage.cloud.google.com/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-go-coverage/1517448288100421633/artifacts/line-cov.html#file0) | 79.9% | 80.3% | 0.4

tekton-robot: @rupalibehera: The following test **failed**, say `/retest` to rerun them all:

Test name | Commit | Details | Rerun command
--- | --- | --- | ---
pull-tekton-operator-build-tests | 5d7d6c471649ad1b95a9fe8eac06eb62d272ca7f | [link](https://tekton-releases.appspot.com/build/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-build-tests/1517448288100421635/) | `/test pull-tekton-operator-build-tests`

[Full PR test history](https://tekton-releases.appspot.com/pr/tektoncd_operator/708). [Your PR dashboard](https://prow.tekton.dev/pr/rupalibehera).

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
tekton-robot: @rupalibehera: The following test **failed**, say `/retest` to rerun them all:

Test name | Commit | Details | Rerun command
--- | --- | --- | ---
pull-tekton-operator-build-tests | 5d7d6c471649ad1b95a9fe8eac06eb62d272ca7f | [link](https://tekton-releases.appspot.com/build/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-build-tests/1517448288100421635/) | `/test pull-tekton-operator-build-tests`

[Full PR test history](https://tekton-releases.appspot.com/pr/tektoncd_operator/708). [Your PR dashboard](https://prow.tekton.dev/pr/rupalibehera).

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
tekton-robot: The following is the coverage report on the affected files.
Say `/test pull-tekton-operator-go-coverage` to re-run this coverage report

File | Old Coverage | New Coverage | Delta
---- |:------------:|:------------:|:-----:
[pkg/reconciler/common/prune.go](https://storage.cloud.google.com/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-go-coverage/1517456341562560512/artifacts/line-cov.html#file0) | 79.9% | 80.3% | 0.4

tekton-robot: @rupalibehera: The following test **failed**, say `/retest` to rerun them all:

Test name | Commit | Details | Rerun command
--- | --- | --- | ---
pull-tekton-operator-build-tests | 6ca183b76844a595853b787b22f640712484cfd1 | [link](https://tekton-releases.appspot.com/build/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-build-tests/1517456341562560513/) | `/test pull-tekton-operator-build-tests`

[Full PR test history](https://tekton-releases.appspot.com/pr/tektoncd_operator/708). [Your PR dashboard](https://prow.tekton.dev/pr/rupalibehera).

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
tekton-robot: @rupalibehera: The following test **failed**, say `/retest` to rerun them all:

Test name | Commit | Details | Rerun command
--- | --- | --- | ---
pull-tekton-operator-build-tests | 6ca183b76844a595853b787b22f640712484cfd1 | [link](https://tekton-releases.appspot.com/build/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-build-tests/1517456341562560513/) | `/test pull-tekton-operator-build-tests`

[Full PR test history](https://tekton-releases.appspot.com/pr/tektoncd_operator/708). [Your PR dashboard](https://prow.tekton.dev/pr/rupalibehera).

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
tekton-robot: The following is the coverage report on the affected files.
Say `/test pull-tekton-operator-go-coverage` to re-run this coverage report

File | Old Coverage | New Coverage | Delta
---- |:------------:|:------------:|:-----:
[pkg/reconciler/common/prune.go](https://storage.cloud.google.com/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-go-coverage/1517475720362725376/artifacts/line-cov.html#file0) | 79.9% | 80.3% | 0.4

rupalibehera: @piyush-garg @nikhil-thomas @pradeepitm12 could you guys please review this ?

tekton-robot: The following is the coverage report on the affected files.
Say `/test pull-tekton-operator-go-coverage` to re-run this coverage report

File | Old Coverage | New Coverage | Delta
---- |:------------:|:------------:|:-----:
[pkg/reconciler/common/prune.go](https://storage.cloud.google.com/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-go-coverage/1518866508669784065/artifacts/line-cov.html#file0) | 79.9% | 80.3% | 0.4

tekton-robot: @rupalibehera: The following test **failed**, say `/retest` to rerun them all:

Test name | Commit | Details | Rerun command
--- | --- | --- | ---
pull-tekton-operator-integration-tests | 0a53149b4f43f6ed9186dfd5874d07d368a4f361 | [link](https://tekton-releases.appspot.com/build/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-integration-tests/1518866508669784064/) | `/test pull-tekton-operator-integration-tests`

[Full PR test history](https://tekton-releases.appspot.com/pr/tektoncd_operator/708). [Your PR dashboard](https://prow.tekton.dev/pr/rupalibehera).

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
tekton-robot: @rupalibehera: The following test **failed**, say `/retest` to rerun them all:

Test name | Commit | Details | Rerun command
--- | --- | --- | ---
pull-tekton-operator-integration-tests | 0a53149b4f43f6ed9186dfd5874d07d368a4f361 | [link](https://tekton-releases.appspot.com/build/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-integration-tests/1518866508669784064/) | `/test pull-tekton-operator-integration-tests`

[Full PR test history](https://tekton-releases.appspot.com/pr/tektoncd_operator/708). [Your PR dashboard](https://prow.tekton.dev/pr/rupalibehera).

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
rupalibehera: @piyush-garg @nikhil-thomas @pradeepitm12 could you guys please review this again ?
rupalibehera: /retest
tekton-robot: @rupalibehera: The following test **failed**, say `/retest` to rerun them all:

Test name | Commit | Details | Rerun command
--- | --- | --- | ---
pull-tekton-operator-integration-tests | 0a53149b4f43f6ed9186dfd5874d07d368a4f361 | [link](https://tekton-releases.appspot.com/build/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-integration-tests/1518902620184383488/) | `/test pull-tekton-operator-integration-tests`

[Full PR test history](https://tekton-releases.appspot.com/pr/tektoncd_operator/708). [Your PR dashboard](https://prow.tekton.dev/pr/rupalibehera).

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
tekton-robot: @rupalibehera: The following test **failed**, say `/retest` to rerun them all:

Test name | Commit | Details | Rerun command
--- | --- | --- | ---
pull-tekton-operator-integration-tests | 0a53149b4f43f6ed9186dfd5874d07d368a4f361 | [link](https://tekton-releases.appspot.com/build/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-integration-tests/1518902620184383488/) | `/test pull-tekton-operator-integration-tests`

[Full PR test history](https://tekton-releases.appspot.com/pr/tektoncd_operator/708). [Your PR dashboard](https://prow.tekton.dev/pr/rupalibehera).

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
rupalibehera: /retest
tekton-robot: @rupalibehera: The following test **failed**, say `/retest` to rerun them all:

Test name | Commit | Details | Rerun command
--- | --- | --- | ---
pull-tekton-operator-integration-tests | 0a53149b4f43f6ed9186dfd5874d07d368a4f361 | [link](https://tekton-releases.appspot.com/build/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-integration-tests/1518935966444687360/) | `/test pull-tekton-operator-integration-tests`

[Full PR test history](https://tekton-releases.appspot.com/pr/tektoncd_operator/708). [Your PR dashboard](https://prow.tekton.dev/pr/rupalibehera).

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
tekton-robot: The following is the coverage report on the affected files.
Say `/test pull-tekton-operator-go-coverage` to re-run this coverage report

File | Old Coverage | New Coverage | Delta
---- |:------------:|:------------:|:-----:
[pkg/reconciler/common/prune.go](https://storage.cloud.google.com/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-go-coverage/1519973080837918722/artifacts/line-cov.html#file0) | 79.9% | 80.0% | 0.1

tekton-robot: @rupalibehera: The following test **failed**, say `/retest` to rerun them all:

Test name | Commit | Details | Rerun command
--- | --- | --- | ---
pull-tekton-operator-integration-tests | 0725216d6b42de4bf7b952c42ddcfe5c791c7302 | [link](https://tekton-releases.appspot.com/build/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-integration-tests/1519973080837918721/) | `/test pull-tekton-operator-integration-tests`

[Full PR test history](https://tekton-releases.appspot.com/pr/tektoncd_operator/708). [Your PR dashboard](https://prow.tekton.dev/pr/rupalibehera).

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
nikhil-thomas: /retest

as https://github.com/tektoncd/operator/pull/769 has merged, ci should pass
tekton-robot: @rupalibehera: The following test **failed**, say `/retest` to rerun them all:

Test name | Commit | Details | Rerun command
--- | --- | --- | ---
pull-tekton-operator-integration-tests | 0725216d6b42de4bf7b952c42ddcfe5c791c7302 | [link](https://tekton-releases.appspot.com/build/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-integration-tests/1521416342207467521/) | `/test pull-tekton-operator-integration-tests`

[Full PR test history](https://tekton-releases.appspot.com/pr/tektoncd_operator/708). [Your PR dashboard](https://prow.tekton.dev/pr/rupalibehera).

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
rupalibehera: /retest

tekton-robot: The following is the coverage report on the affected files.
Say `/test pull-tekton-operator-go-coverage` to re-run this coverage report

File | Old Coverage | New Coverage | Delta
---- |:------------:|:------------:|:-----:
[pkg/reconciler/common/prune.go](https://storage.cloud.google.com/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-go-coverage/1524374082726924290/artifacts/line-cov.html#file0) | 79.9% | 79.4% | -0.5

tekton-robot: The following is the coverage report on the affected files.
Say `/test pull-tekton-operator-go-coverage` to re-run this coverage report

File | Old Coverage | New Coverage | Delta
---- |:------------:|:------------:|:-----:
[pkg/reconciler/common/prune.go](https://storage.cloud.google.com/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-go-coverage/1526885126972116994/artifacts/line-cov.html#file0) | 79.9% | 80.4% | 0.5

tekton-robot: @rupalibehera: The following test **failed**, say `/retest` to rerun them all:

Test name | Commit | Details | Rerun command
--- | --- | --- | ---
pull-tekton-operator-build-tests | da30483309d33614032b2ae55af0d46e0e2778fa | [link](https://tekton-releases.appspot.com/build/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-build-tests/1526885126972116992/) | `/test pull-tekton-operator-build-tests`

[Full PR test history](https://tekton-releases.appspot.com/pr/tektoncd_operator/708). [Your PR dashboard](https://prow.tekton.dev/pr/rupalibehera).

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
tekton-robot: @rupalibehera: The following test **failed**, say `/retest` to rerun them all:

Test name | Commit | Details | Rerun command
--- | --- | --- | ---
pull-tekton-operator-build-tests | da30483309d33614032b2ae55af0d46e0e2778fa | [link](https://tekton-releases.appspot.com/build/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-build-tests/1526885126972116992/) | `/test pull-tekton-operator-build-tests`

[Full PR test history](https://tekton-releases.appspot.com/pr/tektoncd_operator/708). [Your PR dashboard](https://prow.tekton.dev/pr/rupalibehera).

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
tekton-robot: The following is the coverage report on the affected files.
Say `/test pull-tekton-operator-go-coverage` to re-run this coverage report

File | Old Coverage | New Coverage | Delta
---- |:------------:|:------------:|:-----:
[pkg/reconciler/common/prune.go](https://storage.cloud.google.com/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-go-coverage/1526910293131661314/artifacts/line-cov.html#file0) | 79.9% | 80.4% | 0.5

tekton-robot: The following is the coverage report on the affected files.
Say `/test pull-tekton-operator-go-coverage` to re-run this coverage report

File | Old Coverage | New Coverage | Delta
---- |:------------:|:------------:|:-----:
[pkg/reconciler/common/prune.go](https://storage.cloud.google.com/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-go-coverage/1527189254751391744/artifacts/line-cov.html#file0) | 79.9% | 80.4% | 0.5

rupalibehera: @pradeepitm12 @piyush-garg could you please take a look at this PR again
tekton-robot: The following is the coverage report on the affected files.
Say `/test pull-tekton-operator-go-coverage` to re-run this coverage report

File | Old Coverage | New Coverage | Delta
---- |:------------:|:------------:|:-----:
[pkg/reconciler/common/prune.go](https://storage.cloud.google.com/tekton-prow/pr-logs/pull/tektoncd_operator/708/pull-tekton-operator-go-coverage/1532017676098998275/artifacts/line-cov.html#file0) | 80.0% | 80.5% | 0.5


Patch:
diff --git a/.github/workflows/projects.yaml b/.github/workflows/projects.yaml
new file mode 100644
index 000000000..1e407f9cc
--- /dev/null
+++ b/.github/workflows/projects.yaml
@@ -0,0 +1,23 @@
+name: Add issues and pull-requests to board
+
+on:
+  issues:
+    types:
+      - opened
+      - reopened
+      - labeled
+  pull_request:
+    types:
+      - opened
+      - reopened
+      - labeled
+
+jobs:
+  add-to-project:
+    name: Add issue to project
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/add-to-project@main
+        with:
+          project-url: https://github.com/orgs/tektoncd/projects/22
+          github-token: ${{ secrets.GH_TOKEN }}
diff --git a/pkg/reconciler/common/prune.go b/pkg/reconciler/common/prune.go
index 7c96bdab8..b0bec8988 100644
--- a/pkg/reconciler/common/prune.go
+++ b/pkg/reconciler/common/prune.go
@@ -129,7 +129,7 @@ func Prune(ctx context.Context, k kubernetes.Interface, tC *v1alpha1.TektonConfi
 	}
 	if pruningNamespaces.commonScheduleNs != nil && len(pruningNamespaces.commonScheduleNs) > 0 {
 		jobs := getJobContainer(generateAllPruneConfig(pruningNamespaces.commonScheduleNs), pruner.targetNamespace, pruner.tknImage)
-		if err := pruner.checkAndCreate(ctx, "", tC.Spec.Pruner.Schedule, jobs, pruneCronLabel, pruningNamespaces.configChanged); err != nil {
+		if err := pruner.checkAndCreate(ctx, "", tC.Spec.Pruner.Schedule, jobs, pruneCronLabel, pruningNamespaces.configChanged, tC); err != nil {
 			logger.Error("failed to create cronjob ", err)
 		}
 	}
@@ -138,7 +138,7 @@ func Prune(ctx context.Context, k kubernetes.Interface, tC *v1alpha1.TektonConfi
 		for ns, con := range pruningNamespaces.uniqueScheduleNS {
 			jobs := getJobContainer(generatePruneConfigPerNamespace(con, ns), ns, pruner.tknImage)
 			listOpt := pruneCronNsLabel + "=" + ns
-			if err := pruner.checkAndCreate(ctx, ns, con.config.Schedule, jobs, listOpt, pruningNamespaces.configChanged); err != nil {
+			if err := pruner.checkAndCreate(ctx, ns, con.config.Schedule, jobs, listOpt, pruningNamespaces.configChanged, tC); err != nil {
 				logger.Error("failed to create cronjob ", err)
 			}
 		}
@@ -262,7 +262,12 @@ func getJobContainer(cmdArgs, ns string, tknImage string) []corev1.Container {
 	return []corev1.Container{container}
 }
 
-func (pruner *Pruner) checkAndCreate(ctx context.Context, uniquePruneNs, schedule string, pruneContainers []corev1.Container, listOpt string, configChanged bool) error {
+func (pruner *Pruner) checkAndCreate(ctx context.Context, uniquePruneNs, schedule string, pruneContainers []corev1.Container, listOpt string, configChanged bool, tC *v1alpha1.TektonConfig) error {
+	// calculate tektonConfig.Spec.Config hash to check if nodeSelector and tolerations have changed
+	computeTektonConfigSpecConfigHash, err := hash.Compute(tC.Spec.Config)
+	if err != nil {
+		return err
+	}
 	suffixedCronName := SimpleNameGenerator.RestrictLengthWithRandomSuffix(CronName)
 	cronList, err := pruner.listCronJobs(ctx, pruner.targetNamespace, listOpt)
 	if err != nil {
@@ -275,22 +280,49 @@ func (pruner *Pruner) checkAndCreate(ctx context.Context, uniquePruneNs, schedul
 				return err
 			}
 		}
-		return createCronJob(ctx, pruner.kc, suffixedCronName, pruner.targetNamespace, uniquePruneNs, schedule, pruneContainers, pruner.ownerRef)
+		return createCronJob(ctx, pruner.kc, suffixedCronName, pruner.targetNamespace, uniquePruneNs, schedule, pruneContainers, pruner.ownerRef, tC, computeTektonConfigSpecConfigHash)
 	}
 
 	// no change in config but the cronjob does not exist
 	if len(cronList.Items) == 0 && !configChanged {
-		return createCronJob(ctx, pruner.kc, suffixedCronName, pruner.targetNamespace, uniquePruneNs, schedule, pruneContainers, pruner.ownerRef)
+		return createCronJob(ctx, pruner.kc, suffixedCronName, pruner.targetNamespace, uniquePruneNs, schedule, pruneContainers, pruner.ownerRef, tC, computeTektonConfigSpecConfigHash)
 	}
 
 	// any case with config change
 	if configChanged {
-		return createCronJob(ctx, pruner.kc, suffixedCronName, pruner.targetNamespace, uniquePruneNs, schedule, pruneContainers, pruner.ownerRef)
+		return createCronJob(ctx, pruner.kc, suffixedCronName, pruner.targetNamespace, uniquePruneNs, schedule, pruneContainers, pruner.ownerRef, tC, computeTektonConfigSpecConfigHash)
+	}
+	// In case nodeSelector or Tolerations changed
+	if len(cronList.Items) > 0 {
+		// get the cronjob to check previous annotations
+		annotations := cronList.Items[0].Annotations
+		nodeSelectorOrTolerationsChanged := checkTektonConfigSpecConfigHashChange(annotations, computeTektonConfigSpecConfigHash)
+
+		if nodeSelectorOrTolerationsChanged {
+			for _, cronjob := range cronList.Items {
+				if err := pruner.deleteCronJob(ctx, cronjob.Name); err != nil {
+					return err
+				}
+			}
+
+			return createCronJob(ctx, pruner.kc, suffixedCronName, pruner.targetNamespace, uniquePruneNs, schedule, pruneContainers, pruner.ownerRef, tC, computeTektonConfigSpecConfigHash)
+
+		}
 	}
 	return nil
 }
 
-func createCronJob(ctx context.Context, kc kubernetes.Interface, cronName, targetNs, pruneNs, schedule string, pruneContainers []corev1.Container, oR v1.OwnerReference) error {
+func checkTektonConfigSpecConfigHashChange(annotations map[string]string, currentComputedHash string) bool {
+	// check if the annotation in the cronJob is same or changed.
+	lastHash, ok := annotations[v1alpha1.LastAppliedHashKey]
+	if ok {
+		return lastHash != currentComputedHash
+	}
+	return true
+}
+
+func createCronJob(ctx context.Context, kc kubernetes.Interface, cronName, targetNs, pruneNs, schedule string, pruneContainers []corev1.Container, oR v1.OwnerReference, tC *v1alpha1.TektonConfig, computedTektonConfigSpecConfigHash string) error {
+
 	backOffLimit := int32(3)
 	ttlSecondsAfterFinished := int32(3600)
 	cj := &batchv1.CronJob{
@@ -302,6 +334,7 @@ func createCronJob(ctx context.Context, kc kubernetes.Interface, cronName, targe
 			Name:            cronName,
 			OwnerReferences: []v1.OwnerReference{oR},
 			Labels:          map[string]string{pruneCronLabel: "true"},
+			Annotations:     map[string]string{v1alpha1.LastAppliedHashKey: computedTektonConfigSpecConfigHash},
 		},
 		Spec: batchv1.CronJobSpec{
 			Schedule:          schedule,
@@ -317,6 +350,8 @@ func createCronJob(ctx context.Context, kc kubernetes.Interface, cronName, targe
 							Containers:         pruneContainers,
 							RestartPolicy:      "OnFailure",
 							ServiceAccountName: tektonSA,
+							NodeSelector:       tC.Spec.Config.NodeSelector,
+							Tolerations:        tC.Spec.Config.Tolerations,
 						},
 					},
 				},


Test patch:
diff --git a/pkg/reconciler/common/prune_test.go b/pkg/reconciler/common/prune_test.go
index ee3eb3b57..f54b50c14 100644
--- a/pkg/reconciler/common/prune_test.go
+++ b/pkg/reconciler/common/prune_test.go
@@ -31,8 +31,9 @@ import (
 )
 
 const (
-	scheduleCommon = "*/2 * * * *"
-	scheduleUnique = "*/4 * * * *"
+	scheduleCommon  = "*/2 * * * *"
+	scheduleUnique  = "*/4 * * * *"
+	scheduleUnique2 = "*/6 * * * *"
 )
 
 func TestGetPrunableNamespaces(t *testing.T) {
@@ -109,6 +110,7 @@ func TestCompleteFlowPrune(t *testing.T) {
 		&corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: "ns-four", Annotations: anno4}},
 	)
 	os.Setenv(JobsTKNImageName, "some")
+	defer os.Unsetenv(JobsTKNImageName)
 
 	err := Prune(context.TODO(), client, config)
 	if err != nil {
@@ -210,6 +212,7 @@ func TestAnnotationCmd(t *testing.T) {
 		&corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: "ns-thirteen", Annotations: annoStrategyKeep}},
 	)
 	os.Setenv(JobsTKNImageName, "some")
+	defer os.Unsetenv(JobsTKNImageName)
 
 	err := Prune(context.TODO(), client, config)
 	if err != nil {
@@ -282,6 +285,7 @@ func TestConfigChange(t *testing.T) {
 		&corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: "ns-one", Annotations: anno1}},
 	)
 	os.Setenv(JobsTKNImageName, "some")
+	defer os.Unsetenv(JobsTKNImageName)
 
 	err := Prune(context.TODO(), client, config)
 	if err != nil {
@@ -326,3 +330,108 @@ func TestConfigChange(t *testing.T) {
 		assert.Error(t, err, "a new cronjob expected")
 	}
 }
+
+// test the cronjob creation when NodeSelector and Toleration changes
+func TestNodeSelectorOrTolerationsChange(t *testing.T) {
+	keep := uint(3)
+	annoUniqueSchedule := map[string]string{pruneSchedule: scheduleUnique}
+	annoUniqueSchedule2 := map[string]string{pruneSchedule: scheduleUnique2}
+	defaultPrune := &v1alpha1.Prune{
+		Resources: []string{"pipelinerun"},
+		Keep:      &keep,
+		Schedule:  scheduleCommon,
+	}
+	tektonConfigSpecConfig := v1alpha1.Config{
+		NodeSelector: map[string]string{
+			"foo": "bar",
+		},
+		Tolerations: []corev1.Toleration{
+			{
+				Key:      "foo",
+				Operator: "equals",
+				Value:    "bar",
+				Effect:   "noSchedule",
+			},
+		},
+	}
+	tektonConfigSpecConfigEmpty := v1alpha1.Config{}
+
+	config1 := &v1alpha1.TektonConfig{
+		ObjectMeta: metav1.ObjectMeta{
+			Name: "config",
+		},
+		Spec: v1alpha1.TektonConfigSpec{
+			Profile:    "all",
+			Pruner:     *defaultPrune,
+			CommonSpec: v1alpha1.CommonSpec{TargetNamespace: "openshift-pipelines"},
+			Config:     tektonConfigSpecConfig,
+		},
+	}
+
+	config2 := &v1alpha1.TektonConfig{
+		ObjectMeta: metav1.ObjectMeta{
+			Name: "config",
+		},
+		Spec: v1alpha1.TektonConfigSpec{
+			Profile:    "all",
+			Pruner:     *defaultPrune,
+			CommonSpec: v1alpha1.CommonSpec{TargetNamespace: "openshift-pipelines"},
+			Config:     tektonConfigSpecConfigEmpty,
+		},
+	}
+	client := fake.NewSimpleClientset(
+		&corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: "openshift-pipelines"}},
+		&corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: "openshift-api"}},
+		&corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: "openshift-api-url"}},
+		&corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: "kube-system"}},
+		&corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: "kube-api"}},
+		&corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: "ns-one"}},
+		&corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: "ns-two", Annotations: annoUniqueSchedule}},
+		&corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: "ns-three", Annotations: annoUniqueSchedule2}},
+	)
+	os.Setenv(JobsTKNImageName, "some")
+	defer os.Unsetenv(JobsTKNImageName)
+
+	// Pruning with the nodes and Tolerations
+	err := Prune(context.TODO(), client, config1)
+	if err != nil {
+		assert.Error(t, err, "unable to initiate prune")
+	}
+
+	oldCronjobs, err := client.BatchV1().CronJobs("").List(context.TODO(), metav1.ListOptions{})
+	if err != nil {
+		assert.Error(t, err, "unable to get cronjobs ")
+	}
+	oldCronList := []string{}
+	for _, cronjob := range oldCronjobs.Items {
+		oldCronList = append(oldCronList, cronjob.Name)
+	}
+
+	// Pruning after removing nodes and Tolerations
+	err = Prune(context.TODO(), client, config2)
+	if err != nil {
+		assert.Error(t, err, "unable to initiate prune")
+	}
+
+	newCronjobs, err := client.BatchV1().CronJobs("").List(context.TODO(), metav1.ListOptions{})
+	if err != nil {
+		assert.Error(t, err, "unable to get cronjobs ")
+	}
+	newCronList := []string{}
+	for _, cronjob := range newCronjobs.Items {
+		newCronList = append(newCronList, cronjob.Name)
+	}
+	assert.Assert(t, len(oldCronList) == len(newCronList), "Number of cronJobs should be same after nodeselector and Toleration config change")
+	// checking if config change recreated all the cron Jobs
+	cronjobChanged := true
+	for _, oldCronName := range oldCronList {
+		for _, newCronName := range newCronList {
+			if oldCronName == newCronName {
+				cronjobChanged = false
+				break
+			}
+		}
+		assert.Assert(t, cronjobChanged, "nodeselector and Toleration Config change should recreate all the cron Jobs")
+	}
+
+}
diff --git a/test/utils/config.go b/test/utils/config.go
index 191d6f859..5814cb162 100644
--- a/test/utils/config.go
+++ b/test/utils/config.go
@@ -4,5 +4,5 @@ import "time"
 
 var (
 	Interval = 10 * time.Second
-	Timeout  = 5 * time.Minute
+	Timeout  = 10 * time.Minute
 )