Skip to content
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

Clean up #15415

Merged
merged 1 commit into from
Jul 29, 2024
Merged

Clean up #15415

merged 1 commit into from
Jul 29, 2024

Conversation

skonto
Copy link
Contributor

@skonto skonto commented Jul 26, 2024

Proposed Changes

  • Cleans up a few things
  • current leases:
autoscaler-bucket-00-of-01                                                            autoscaler-788d5c7f85-gkksg_10.244.0.7                            3m15s
controller.knative.dev.serving.pkg.reconciler.certificate.reconciler.00-of-01         controller-c55cbcc66-n588l_36f88df5-d9f8-4558-996d-1189cd82a455   4s
controller.knative.dev.serving.pkg.reconciler.configuration.reconciler.00-of-01       controller-c55cbcc66-n588l_b869824a-384f-4072-8d5a-ae5d0ce639da   3m5s
controller.knative.dev.serving.pkg.reconciler.domainmapping.reconciler.00-of-01       controller-c55cbcc66-n588l_380f853a-e4d0-4b96-a36d-770939133dc2   3m5s
controller.knative.dev.serving.pkg.reconciler.gc.reconciler.00-of-01                  controller-c55cbcc66-n588l_e2f153c2-b59f-4d01-8ffe-8f032ecad6ae   3m5s
controller.knative.dev.serving.pkg.reconciler.labeler.reconciler.00-of-01             controller-c55cbcc66-n588l_66536243-d730-4506-935e-8bc8b5487659   3m5s
controller.knative.dev.serving.pkg.reconciler.nscert.reconciler.00-of-01              controller-c55cbcc66-n588l_426e40aa-ce7a-4544-8244-0c8977b4fbcf   3m5s
controller.knative.dev.serving.pkg.reconciler.revision.reconciler.00-of-01            controller-c55cbcc66-n588l_7c277bd2-66ec-4888-a3aa-89b72c1422c4   3m5s
controller.knative.dev.serving.pkg.reconciler.route.reconciler.00-of-01               controller-c55cbcc66-n588l_315871ff-10b9-45b6-94a9-ebe3b4c80ccc   3m5s
controller.knative.dev.serving.pkg.reconciler.serverlessservice.reconciler.00-of-01   controller-c55cbcc66-n588l_7f203b35-95d9-4ed3-b20b-f18868f8a7cf   3m5s
controller.knative.dev.serving.pkg.reconciler.service.reconciler.00-of-01             controller-c55cbcc66-n588l_166b3ac0-1121-4bab-9314-e195f1d332cf   3m5s
webhook.configmapwebhook.00-of-01                                                     webhook-65fc6c7bd8-58s7t_270407bd-0b83-4f68-8e0f-eb1282754c60     2m57s
webhook.defaultingwebhook.00-of-01                                                    webhook-65fc6c7bd8-58s7t_88f528d4-a19a-4537-b58e-e4de19be2127     2m57s
webhook.validationwebhook.00-of-01                                                    webhook-65fc6c7bd8-58s7t_131462e2-88b4-4036-9f1e-2c89ff261040     2m57s
webhook.webhookcertificates.00-of-01                                                  webhook-65fc6c7bd8-58s7t_df9df56a-a679-40e4-98d5-d6e53665202d     2m57s

vs old ones

controller.knative.dev.serving.pkg.reconciler.configuration.reconciler.00-of-01           controller-6878cd7fdd-8hmdx_3a651de5-c1b8-459b-b822-52551dd5df9f              20s
controller.knative.dev.serving.pkg.reconciler.gc.reconciler.00-of-01                      controller-6878cd7fdd-8hmdx_520566d5-0dc4-40ad-9c55-3cbcf8b7d241              20s
controller.knative.dev.serving.pkg.reconciler.labeler.reconciler.00-of-01                 controller-6878cd7fdd-8hmdx_c5529a8f-9036-4880-b8c6-ba17aa765633              20s
controller.knative.dev.serving.pkg.reconciler.nscert.reconciler.00-of-01                  controller-6878cd7fdd-8hmdx_4021ae51-e8d4-4d53-8bb6-c25baa4d33b8              20s
controller.knative.dev.serving.pkg.reconciler.revision.reconciler.00-of-01                controller-6878cd7fdd-8hmdx_f44c54d0-93cb-4e89-a0a5-39b0b25bb195              20s
controller.knative.dev.serving.pkg.reconciler.route.reconciler.00-of-01                   controller-6878cd7fdd-8hmdx_7954f43f-0353-4969-8f86-526d2e2be7c4              20s
controller.knative.dev.serving.pkg.reconciler.serverlessservice.reconciler.00-of-01       controller-6878cd7fdd-8hmdx_8861c1e8-c601-42c9-a87f-2763bde459fe              20s
controller.knative.dev.serving.pkg.reconciler.service.reconciler.00-of-01                 controller-6878cd7fdd-8hmdx_14021aca-46f2-4116-863c-4b4ab7ed433e              20s
domainmapping-webhook.defaultingwebhook.00-of-01                                          domainmapping-webhook-7877fd9dc8-tjhzz_281f9346-af2e-4d8a-a31d-a8c4d05045c4   11s
domainmapping-webhook.validationwebhook.00-of-01                                          domainmapping-webhook-7877fd9dc8-tjhzz_c5c786d4-e53f-4756-b80d-cdc3b12d9fcf   11s
domainmapping-webhook.webhookcertificates.00-of-01                                        domainmapping-webhook-7877fd9dc8-tjhzz_a4df0a82-bcfc-4a4b-b92c-9d7ac4fb371b   11s
domainmapping.knative.dev.serving.pkg.reconciler.domainmapping.reconciler.00-of-01        domain-mapping-7fd665586-28kmj_acdb43df-ebd6-4723-b768-87881492bf54           3s

net-certmanager leases:

net-certmanager-controller.knative.dev.net-certmanager.pkg.reconciler.certificate.reconciler.00-of-01   net-certmanager-controller-66bd995955-cwxtz_246e43c5-53b7-44d2-9d69-0e7fb52d3d47   75s
net-certmanager-webhook.configmapwebhook.00-of-01                                                       net-certmanager-webhook-68657dd744-7twft_d9775f32-c0bc-4681-bf41-84cc307aff3f      68s
net-certmanager-webhook.webhookcertificates.00-of-01                                                    net-certmanager-webhook-68657dd744-7twft_ad920135-4ff7-401d-8e15-dddf24588210      68s

There are more leases we never deleted as we made changes across releases (maybe for a future PR):

controller.knative.dev.networking.pkg.certificates.reconciler.reconciler.00-of-01
controller.knative.dev.control-protocol.pkg.certificates.reconciler.reconciler.00-of-01   controller-6878cd7fdd-8hmdx_57c4aee6-0fcc-4238-9b4a-7061c39d06bd              20s

@knative-prow knative-prow bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 26, 2024
@skonto skonto requested a review from dprotaso July 26, 2024 12:53
Copy link

codecov bot commented Jul 26, 2024

Codecov Report

Attention: Patch coverage is 63.15789% with 7 lines in your changes missing coverage. Please review.

Project coverage is 84.52%. Comparing base (7d318cd) to head (99c6f3a).
Report is 5 commits behind head on main.

Files Patch % Lines
pkg/cleanup/cmd/cleanup/cleanup.go 0.00% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #15415      +/-   ##
==========================================
- Coverage   84.60%   84.52%   -0.08%     
==========================================
  Files         219      219              
  Lines       13587    13593       +6     
==========================================
- Hits        11495    11490       -5     
- Misses       1725     1734       +9     
- Partials      367      369       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@skonto skonto changed the title [wip] Clean up Clean up Jul 29, 2024
@knative-prow knative-prow bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 29, 2024
@dprotaso
Copy link
Member

/lgtm
/approve
/cherry-pick release-1.15

@knative-prow-robot
Copy link
Contributor

@dprotaso: once the present PR merges, I will cherry-pick it on top of release-1.15 in a new PR and assign it to you.

In response to this:

/lgtm
/approve
/cherry-pick release-1.15

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Jul 29, 2024
Copy link

knative-prow bot commented Jul 29, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dprotaso, skonto

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@dprotaso
Copy link
Member

dprotaso commented Jul 29, 2024

Can you make a PR to delete these ones and I'll cherry pick that back too

controller.knative.dev.networking.pkg.certificates.reconciler.reconciler.00-of-01
controller.knative.dev.control-protocol.pkg.certificates.reconciler.reconciler.00-of-01

What controller had this lease controller.knative.dev.networking.pkg.certificates.reconciler.reconciler.00-of-01 ?

@knative-prow knative-prow bot merged commit 873602a into knative:main Jul 29, 2024
68 checks passed
@knative-prow-robot
Copy link
Contributor

@dprotaso: new pull request created: #15418

In response to this:

/lgtm
/approve
/cherry-pick release-1.15

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@skonto
Copy link
Contributor Author

skonto commented Jul 29, 2024

Can you make a PR to delete these ones and I'll cherry pick that back too

What controller had this lease controller.knative.dev.networking.pkg.certificates.reconciler.reconciler.00-of-01 ?

Sure I need to take a look. I just noticed during some testing.

@skonto
Copy link
Contributor Author

skonto commented Jul 30, 2024

@dprotaso

controller.knative.dev.networking.pkg.certificates.reconciler.reconciler.00-of-01 was added in 1.11 see knative/networking#802. With 1.11 controller.knative.dev.control-protocol.pkg.certificates.reconciler.reconciler.00-of-01 became redundant.
Later on controller.knative.dev.networking.pkg.certificates.reconciler.reconciler.00-of-01 was also removed knative/networking@060ef7a
With 1.15 and when internal encryption is on we get controller.knative.dev.serving.pkg.reconciler.certificate.reconciler.00-of-01.

This happened due to the intermediate steps taken to move to current internal encryption implementation cc @ReToCode in case I miss anything.

I will create a PR to update the cleanup job for those two leases. So anyone running the job in 1.15 will have a cleaned state.
I am not sure if Knative operator cleans up those resources since they are not part of the manifest but I guess the clean up job is for 1.15+.

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. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants