-
Notifications
You must be signed in to change notification settings - Fork 905
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
Prevent superfluous external-name annotation on XRs #2353
Conversation
The semantics of this change are as follows. The context is the interaction between a claim and the corresponding XR. external-name below refers to the external-name annotation:
|
Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
We now have a behavior change in case there is a mismatch between a claim's external-name and the bound XR's external name: Controller now returns an error and refuses to reconcile the XR with the following error message:
|
- Assert an error if claim's and bound statically provisioned XR's external-names do not match Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
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 looks good to me, apart from a few small nits.
WRT whether we return an error or overwrite the claim's external name when they conflict, I don't feel strongly either way. You make a good point at #2353 (comment) @ulucinar and I'd also be happy to approve the variant you suggest if you feel that is the better path.
Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
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 looks great @ulucinar! Thank you. Let me know when you're ready for me to merge this.
Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
Hi @negz, |
@ulucinar I think we will want to include these in patch release "soon", but whether we release patch releases just for this bug or wait for a few more to build up is pretty open ended. We should definitely get the backports done, but we might want to hold off a little to see if we can get a few more bugs fixed before we cut patch releases. |
Successfully created backport PR #2419 for |
Successfully created backport PR #2420 for |
Successfully created backport PR #2421 for |
Signed-off-by: Alper Rifat Ulucinar ulucinar@users.noreply.github.com
Description of your changes
Fixes #2350
I have:
make reviewable test
to ensure this PR is ready for review.backport release-x.y
labels to auto-backport this PR if necessary.How has this code been tested
Using getting-started guide's aws (with default VPC) configuration, I provisioned an XR via its claim. The superfluous external-name annotation is not observed. Please see the comment below for the semantics of this change.