-
Notifications
You must be signed in to change notification settings - Fork 599
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
JobSink: Delete secrets associated with jobs when jobs are deleted #8331
Conversation
9a2dec7
to
c4f7cda
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8331 +/- ##
==========================================
- Coverage 64.58% 64.58% -0.01%
==========================================
Files 373 373
Lines 22619 22666 +47
==========================================
+ Hits 14609 14639 +30
- Misses 7244 7260 +16
- Partials 766 767 +1 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
/test unit-tests |
As reported in knative#8323 old JobSink secrets lead to processing old events again while new events are lost. Using OwnerReference and k8s garbage collection, now a secret created for a given event is bound to a given Job lifecycle, so that when a job is deleted, the associated secret will be deleted. Signed-off-by: Pierangelo Di Pilato <[email protected]>
c4f7cda
to
c9fc3cf
Compare
Signed-off-by: Pierangelo Di Pilato <[email protected]>
Signed-off-by: Pierangelo Di Pilato <[email protected]>
f88177f
to
5f0617d
Compare
Signed-off-by: Pierangelo Di Pilato <[email protected]>
/cherry-pick release-1.16 |
/cherry-pick release-1.15 |
@pierDipi: once the present PR merges, I will cherry-pick it on top of In response to this:
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. |
@pierDipi: once the present PR merges, I will cherry-pick it on top of In response to this:
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. |
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.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: matzew, pierDipi 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 |
@pierDipi: new pull request created: #8332 In response to this:
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. |
@pierDipi: new pull request created: #8333 In response to this:
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. |
As reported in #8323 old
JobSink secrets lead to processing old events again while new events
are lost, even though this should not happen because distinct events
must have different id or source, it's a valid issue as it leaves orphan
secrets.
Using OwnerReference and k8s garbage collection, now a secret created
for a given event is bound to a given Job lifecycle, so that when a job is
deleted, the associated secret will be deleted.
Fixes #8323
Proposed Changes
Pre-review Checklist
Release Note
Docs