Skip to content

Conversation

@PuneetPunamiya
Copy link
Member

@PuneetPunamiya PuneetPunamiya commented Jun 24, 2021

  • This patch adds ownerReference and following informers in TektonConfig Controller
    - Tetkton Addon Informer
    - Tekton Dashboard Informer
    - Tekton Pipeline Informer
    - Tekton Trigger Informer

Fixes: #249

Signed-off-by: Puneet Punamiya ppunamiy@redhat.com

Changes

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

See the contribution guide for more details.

Release Notes

@tekton-robot tekton-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Jun 24, 2021
@tekton-robot tekton-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jun 24, 2021
@tekton-robot
Copy link
Contributor

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/kubernetes/tektonconfig/pipeline/pipeline.go 76.1% 76.6% 0.5

@tekton-robot tekton-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 11, 2021
@tekton-robot tekton-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 12, 2021
@PuneetPunamiya PuneetPunamiya changed the title [WIP] Updates TektonConfig Controller to recreate components on deletion Updates TektonConfig Controller to recreate components on deletion Aug 12, 2021
@tekton-robot tekton-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 12, 2021
@tekton-robot
Copy link
Contributor

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/kubernetes/tektonconfig/extension/dashboard.go 69.4% 70.0% 0.6
pkg/reconciler/kubernetes/tektonconfig/pipeline/pipeline.go 68.6% 69.2% 0.6
pkg/reconciler/kubernetes/tektonconfig/trigger/trigger.go 69.4% 70.0% 0.6
pkg/reconciler/openshift/tektonconfig/extension/addon.go 65.4% 66.0% 0.7

@tekton-robot
Copy link
Contributor

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/kubernetes/tektonconfig/extension/dashboard.go 69.4% 70.0% 0.6
pkg/reconciler/kubernetes/tektonconfig/pipeline/pipeline.go 68.6% 69.2% 0.6
pkg/reconciler/kubernetes/tektonconfig/trigger/trigger.go 69.4% 70.0% 0.6
pkg/reconciler/openshift/tektonconfig/extension/addon.go 65.4% 66.0% 0.7


return clients.Update(context.TODO(), tdCR, metav1.UpdateOptions{})
}

Copy link
Member

Choose a reason for hiding this comment

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

may be we should also check if an existing instance doesn't have an owner ref then update that instance

Copy link
Member Author

Choose a reason for hiding this comment

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

Have updated the patch could you please take a look at it once

@tekton-robot
Copy link
Contributor

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/kubernetes/tektonconfig/extension/dashboard.go 69.4% 60.7% -8.7
pkg/reconciler/kubernetes/tektonconfig/pipeline/pipeline.go 68.6% 60.3% -8.3
pkg/reconciler/kubernetes/tektonconfig/trigger/trigger.go 69.4% 60.7% -8.7
pkg/reconciler/openshift/tektonconfig/extension/addon.go 65.4% 58.3% -7.1

  - This patch adds ownerReference and following informers in TektonConfig Controller
       - Tetkton Addon Informer
       - Tekton Dashboard Informer
       - Tekton Pipeline Informer
       - Tekton Trigger Informer

Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
@tekton-robot tekton-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Aug 25, 2021
@tekton-robot
Copy link
Contributor

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/kubernetes/tektonconfig/extension/dashboard.go 69.4% 58.6% -10.8
pkg/reconciler/kubernetes/tektonconfig/pipeline/pipeline.go 68.6% 56.5% -12.2
pkg/reconciler/kubernetes/tektonconfig/trigger/trigger.go 72.0% 72.1% 0.1
pkg/reconciler/openshift/tektonconfig/extension/addon.go 65.4% 59.3% -6.1

@sm43
Copy link
Member

sm43 commented Aug 26, 2021

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 26, 2021
@nikhil-thomas
Copy link
Member

/lgtm

@nikhil-thomas
Copy link
Member

/approve

@tekton-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nikhil-thomas

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 27, 2021
@tekton-robot tekton-robot merged commit 6904e14 into tektoncd:main Aug 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TektonConfig reconciler is not recreating components on deletion

5 participants