-
Notifications
You must be signed in to change notification settings - Fork 592
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
Generate names with kmeta.ChildName. Delete deprecated named resources #2861
Generate names with kmeta.ChildName. Delete deprecated named resources #2861
Conversation
Hi @odacremolbap. Thanks for your PR. I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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/test-infra repository. |
/assign @matzew |
/ok-to-test |
/hold |
The following is the coverage report on the affected files.
|
/unhold |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: n3wscott, odacremolbap 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 |
@odacremolbap Deleting and recreating a Subscription causes data loss in addition to downtime. The subscription's delivery state is also deleted (e.g. for a KafkaChannel, the offsets into the topic). From the user's perspective, any queued messages will be lost when the Subscription is deleted and recreated. We need to be very clear to the user that their existing Broker state may be lost on upgrade if they have Subscriptions with names that would change. If we can't tell users exactly what their impact will be BEFORE upgrading, then I'd prefer to revert this until we can. |
yes, that was mentioned here #2800 (comment) , I though we all were aware of that and that we were ok with that change sooner than later. I should've highlighted that at the release note, in any case the place to warn for this is the Let's double check if everyone is ok with the change, if not, let's remove an plan for something different |
Sure, it may be that all we need is a clearer release note that tells users before they upgrade if they'll be affected or not and what the effect is. You can update the release note in your initial comment. /cc @lionelvillard @vaikas for alternate perspectives. |
Discussed this in the meeting and decided to write some guidance or a tool for users to help determine which of their brokers will be affected before upgrading. @odacremolbap graciously volunteered to help with this. |
@grantr @vaikas @lionelvillard @n3wscott I'm working on the mini-reporting here: https://github.com/triggermesh/eventing-upgrade-check How should we proceed?
|
Thanks, that repo looks great! Docs 😍 Sorry for the delay in answering:
|
I added a pointer to the tool to the release note above:
|
Fixes #2842
Proposed Changes
Description
kmeta.ChildName
while the one we should no longer use isutil.GenerateFixedName
Notice
Some of the code added here, mainly tests and the bridging logic that looks for previously named resources, will need to be deleted after the deprecation period. Tests haven't been refactored to address the needs for long named resources, since all that code will be gone.
There are usages of
util.GenerateFixedName
at other sources at eventing-contrib and at the sample-source. I have opened an issue to track the laterDeprecation
Ideally
util.GenerateFixedName
would be removed to avoid further usage in 2(?) releases. A comment has been added to the function as a warning. Probably some further notice is needed.Action Required
Release Note