-
Notifications
You must be signed in to change notification settings - Fork 74
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
ReplicatedSecrets can have a prefix per target #1243
ReplicatedSecrets can have a prefix per target #1243
Conversation
a7c0ebf
to
5b5484a
Compare
This ticket needs one additional thing. At present the final env test that I've added is failing, as the target secret (which has a prefix in this test) is not being properly deleted after it's source secret is deleted. I don't know quite where this logic is supposed to happen, so I've reached out to @burmanm for some help. Everything else looks ok however. |
|
@burmanm the link you provided to the cleanup logic only seems to deal with the ReplicatedSecret resource:
I'm trying to figure out where the cleanup is that is triggered when the source secret is deleted. |
I've discussed this with @burmanm and it appears that if a source secret is deleted without the replicatedSecret that references it being deleted, then actually the downstream secret that is produced by the ReplicatedSecret is not deleted. At the moment we do have orphaned resources in a sense, so I will work with Micke to create a new ticket to address that. But this PR is good to go. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1243 +/- ##
==========================================
- Coverage 57.34% 57.30% -0.05%
==========================================
Files 103 103
Lines 10790 10795 +5
==========================================
- Hits 6188 6186 -2
- Misses 4064 4069 +5
- Partials 538 540 +2
|
…conflict instances where the same source may target the same target multiple times due to presence of several clusters in the target namespace. Envtest for this functionality.
0ac1d65
to
54c2b51
Compare
Quality Gate failedFailed conditions |
What this PR does:
Allow a ReplicatedSecret replication target to define a prefix to de-conflict instances where the same source may target the same target multiple times due to presence of several clusters in the target namespace.
Which issue(s) this PR fixes:
Fixes #1242
Checklist