Run rbac createresources for namespaces concurrently to avoid slowness
Changes
- Process rbac resource creation for openshift namespace reconciliation concurrently to avoid slowness on clusters with high number of namespace
- Avoid blocking the reconciliation loop on error, when errors happen on namespace rbac resource reconciliation for openshift
- Add unit tests to createRessource in rbac.go
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you review them:
- [ ] Run
make test lintbefore submitting a PR - [ ] Includes tests (if functionality changed/added)
- [ ] Includes docs (if user facing)
- [ ] Commit messages follow commit message best practices
See the contribution guide for more details.
Release Notes
/retest
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/openshift/tektonconfig/common.go | 0.0% | 54.8% | 54.8 |
| pkg/reconciler/openshift/tektonconfig/rbac.go | 0.0% | 43.4% | 43.4 |
@jkandasa @piyush-garg can you lgtm please ?
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/openshift/tektonconfig/common.go | 0.0% | 54.8% | 54.8 |
| pkg/reconciler/openshift/tektonconfig/rbac.go | 0.0% | 43.4% | 43.4 |
@jkandasa @piyush-garg Please have a look to my PR
@piyush-garg @vdemeester can you please review?
/test pull-tekton-operator-build-tests
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/openshift/tektonconfig/common.go | 0.0% | 54.8% | 54.8 |
| pkg/reconciler/openshift/tektonconfig/rbac.go | 0.0% | 42.4% | 42.4 |
/test pull-tekton-operator-build-tests
/test pull-tekton-operator-build-tests
/test pull-tekton-operator-build-tests
/test pull-tekton-operator-build-tests
/test pull-tekton-operator-build-tests
/test pull-tekton-operator-build-tests
/test pull-tekton-operator-build-tests
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/openshift/tektonconfig/common.go | 0.0% | 54.8% | 54.8 |
| pkg/reconciler/openshift/tektonconfig/rbac.go | 0.0% | 42.4% | 42.4 |
/retest
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/openshift/tektonconfig/common.go | 0.0% | 54.8% | 54.8 |
| pkg/reconciler/openshift/tektonconfig/rbac.go | 0.0% | 42.4% | 42.4 |
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/openshift/tektonconfig/common.go | 0.0% | 54.8% | 54.8 |
| pkg/reconciler/openshift/tektonconfig/rbac.go | 0.0% | 43.1% | 43.1 |
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/openshift/tektonconfig/common.go | 0.0% | 54.8% | 54.8 |
| pkg/reconciler/openshift/tektonconfig/rbac.go | 0.0% | 45.0% | 45.0 |
Changes
- Process rbac resource creation for openshift namespace reconciliation concurrently to avoid slowness on clusters with high number of namespace
- Avoid blocking the reconciliation loop on error, when errors happen on namespace rbac resource reconciliation for openshift
I am in this situation, thanks for this pull request 👍
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/openshift/tektonconfig/common.go | 0.0% | 54.8% | 54.8 |
| pkg/reconciler/openshift/tektonconfig/rbac.go | 0.0% | 45.0% | 45.0 |
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/openshift/tektonconfig/common.go | 0.0% | 54.8% | 54.8 |
| pkg/reconciler/openshift/tektonconfig/rbac.go | 0.0% | 45.2% | 45.2 |
/approve
cc @jkandasa
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: jkandasa, piyush-garg, vdemeester
The full list of commands accepted by this bot can be found here.
The pull request process is described here
- ~~OWNERS~~ [jkandasa,piyush-garg,vdemeester]
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment