Skip to content

Conversation

@nikhil-thomas
Copy link
Member

Add explicit check to ensure that resources are present on cluster
after an manifestival.Apply() call

Add DeletePropagation policy 'Foreground' to TektonInstallerSet
finalizer logic

Signed-off-by: Nikhil Thomas nikthoma@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

NONE

@tekton-robot tekton-robot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Feb 9, 2022
@tekton-robot tekton-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 9, 2022
@nikhil-thomas nikhil-thomas force-pushed the fix/webhook-configmap-race branch from 7ce712d to 5abba18 Compare February 9, 2022 14:17
@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/tektoninstallerset/install.go 54.7% 76.5% 21.8

@nikhil-thomas nikhil-thomas force-pushed the fix/webhook-configmap-race branch from 5abba18 to 524d80b Compare February 9, 2022 14:39
@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/tektoninstallerset/install.go 54.7% 76.5% 21.8

freshCreate = false
}

if err := mani.Apply(); err != nil {
Copy link
Member

Choose a reason for hiding this comment

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

if we are going to do Apply on all reconcilation
then in allResourcesExists to decide if it is a fresh install
we should check any one resource
checking all resources would be wasting api calls on every reconcilation

Copy link
Member

@sm43 sm43 Feb 9, 2022

Choose a reason for hiding this comment

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

we should check any one resource

the first resource in the list (except namespace)

Copy link
Member Author

Choose a reason for hiding this comment

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

it is alright, at max the calls will be issued only once.
ideally, the operaotr should check (issue get calls) for each resource in each reconcile loop.

Add explicit check to ensure that resources are present on cluster
after an manifestival.Apply() call

Add DeletePropagation policy 'Foreground' to TektonInstallerSet
finalizer logic

Signed-off-by: Nikhil Thomas <nikthoma@redhat.com>
@nikhil-thomas nikhil-thomas force-pushed the fix/webhook-configmap-race branch from 524d80b to d4032a1 Compare February 9, 2022 15:03
@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/tektoninstallerset/install.go 54.7% 76.3% 21.6

@tekton-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vdemeester

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 Feb 9, 2022
@concaf
Copy link
Contributor

concaf commented Feb 9, 2022

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 9, 2022
@tekton-robot tekton-robot merged commit e7b2e98 into tektoncd:main Feb 9, 2022
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.

5 participants