-
Notifications
You must be signed in to change notification settings - Fork 200
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
Refactors TektonTriggers to use TektonInstallerSet #408
Conversation
The following is the coverage report on the affected files.
|
73df580
to
4b5add8
Compare
The following is the coverage report on the affected files.
|
4b5add8
to
70fe2a0
Compare
The following is the coverage report on the affected files.
|
70fe2a0
to
a9694cc
Compare
The following is the coverage report on the affected files.
|
/approve |
@sm43 the reconciler is much simpler now 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do not have a huge test coverage, and this PR removes quite some too, most likely we should port the test to the new struct to make sure we are still covered.
@vdemeester yeah test coverage is less. I was going to address it once refactoring is done, but it make sense to start as if there is a bug we will catch. |
a9694cc
to
b52d522
Compare
The following is the coverage report on the affected files.
|
b52d522
to
a9694cc
Compare
The following is the coverage report on the affected files.
|
/test pull-tekton-operator-integration-tests |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nikhil-thomas, vdemeester 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 |
1b6fed2
to
bbffb93
Compare
The following is the coverage report on the affected files.
|
bbffb93
to
f0e4446
Compare
The following is the coverage report on the affected files.
|
f0e4446
to
4520944
Compare
The following is the coverage report on the affected files.
|
func FetchVersionFromCRD(manifest mf.Manifest, releaseLabel string) (string, error) { | ||
crds := manifest.Filter(mf.CRDs) | ||
if len(crds.Resources()) == 0 { | ||
return "", fmt.Errorf("failed to find crds to get release version") | ||
} | ||
|
||
crd := crds.Resources()[0] | ||
version, ok := crd.GetLabels()[releaseLabel] | ||
if !ok { | ||
return version, fmt.Errorf("failed to find release label on crd") | ||
} | ||
|
||
return version, nil | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this good.
As a future improvement, how about reading the version from the "info" configMap example.
May be we can set it as unknown, if the configMap is not available.
What do you think.
if you think that could be a useful improvement, then could you create an issue (#good-first-issue, #help-wanted) to capture it.
else, i am curious to know why. and feel free to resolve this 🙂 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: this comment ☝️ is not a blocker.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
created #413
LGTM |
If there is any other deployment other than controller and webhook then it will be missed by installer set for checking the status so this adds another condition which marks the status of any other deployment other than controller and webhook. Signed-off-by: Shivam Mukhade <[email protected]>
This updates the triggers reconciler to use TektonInstallerSet for installation, this would allow change of TargetNamespace and deletion of obsolete resources on upgrades. Signed-off-by: Shivam Mukhade <[email protected]>
This adds new test for installer and removes old obsolete tests from common pkg. Signed-off-by: Shivam Mukhade <[email protected]>
Signed-off-by: Shivam Mukhade <[email protected]>
4520944
to
98def76
Compare
The following is the coverage report on the affected files.
|
/lgtm |
Updates Triggers reconciler to use TektonInstallerSet
This updates the triggers reconciler to use TektonInstallerSet
for installation, this would allow change of TargetNamespace and
deletion of obsolete resources on upgrades.
Add AllDeploymentsReady Conditions in TektonInstallerSet
If there is any other deployment other than controller and
webhook then it will be missed by installer set for checking the
status so this adds another condition which marks the status of
any other deployment other than controller and webhook.
Signed-off-by: Shivam Mukhade [email protected]
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