cloud-provider-openstack
cloud-provider-openstack copied to clipboard
[occm] add tag on floating ip create
What this PR does / why we need it:
In some scenarios, tags are used as resource tags, but occm creates a floating ip without a tag. This PR adds the same tag as the LB when the floating ip created.
Add tag same as LB for floating ip create
The committers listed above are authorized under a signed CLA.
- :white_check_mark: login: lidongshengxdayu (d28309fc6a46963060ebf0f1a0e54e169cd0d490, 9180e6d8a55de28620c50b6058c41cf4f116e9bc, a7a5daf72e372942dbb7734585273afda4daff91, 4319a8865044175ea772f0d2fb143e18537d0fae, 0e29ff21c599c3c9fb12bb275b4307766ccde987)
Welcome @lidongshengxdayu!
It looks like this is your first PR to kubernetes/cloud-provider-openstack 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.
You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.
You can also check if kubernetes/cloud-provider-openstack has its own contribution guidelines.
You may want to refer to our testing guide if you run into trouble with your tests not passing.
If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!
Thank you, and welcome to Kubernetes. :smiley:
Hi @lidongshengxdayu. Thanks for your PR.
I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test
on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test
label.
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.
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please assign fengyunpan2 for approval. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.
Approvers can indicate their approval by writing /approve
in a comment
Approvers can cancel approval by writing /approve cancel
in a comment
/ok-to-test
This looks like a sane request to be able to tag the FIPs created by CCM. This needs to handle one more case though:
loadbalancer.openstack.org/keep-floatingip
annotation will force CCM to not delete the FIP. In such two cases we should untag the FIP.
While you're on this, be informed that a bunch of other folks are working on resource tagging, @stephenfin and @dd-georgiev.
This is still not untagging FIPs we don't delete properly.
it mean that you need to untag it when cancel the association?
See this comment for details: https://github.com/kubernetes/cloud-provider-openstack/pull/2577#issuecomment-2075394150