Skip to content

✨ Add Tags to API-Loadbalancer resources#1457

Merged
k8s-ci-robot merged 1 commit intokubernetes-sigs:mainfrom
qeqar:add-tags-to-lb-resources
Feb 3, 2023
Merged

✨ Add Tags to API-Loadbalancer resources#1457
k8s-ci-robot merged 1 commit intokubernetes-sigs:mainfrom
qeqar:add-tags-to-lb-resources

Conversation

@qeqar
Copy link
Contributor

@qeqar qeqar commented Jan 24, 2023

What this PR does / why we need it:

Add Tags to loadbalancer struct
Add Tags to the

  • loadbalancer
  • pool
  • listener
  • member

NOT for the Monitor object, Openstack supports Tags, but the Gohpercloud is not (looked also into newest released version v1.1.1)

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #1455

Special notes for your reviewer:

  1. Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

TODOs:

  • squashed commits
  • if necessary:
    • includes documentation
    • adds unit tests

/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 24, 2023
@netlify
Copy link

netlify bot commented Jan 24, 2023

Deploy Preview for kubernetes-sigs-cluster-api-openstack ready!

Name Link
🔨 Latest commit 4791547
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-cluster-api-openstack/deploys/63d3c3308381280009d7c9fc
😎 Deploy Preview https://deploy-preview-1457--kubernetes-sigs-cluster-api-openstack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jan 24, 2023
@k8s-ci-robot
Copy link
Contributor

Hi @qeqar. Thanks for your PR.

I'm waiting for a kubernetes-sigs 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.

Details

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.

@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jan 24, 2023
@qeqar qeqar changed the title ✨ Add Tags to API-Loadbalancer resources ✨ [WIP] Add Tags to API-Loadbalancer resources Jan 24, 2023
@qeqar
Copy link
Contributor Author

qeqar commented Jan 24, 2023

Ok, wanted to push early!

And get some feedback:
I cannot find any test that tests the api loadbalancer explicitly. Did i miss it, or are there any testcases i can extent for the new tag feature.

Monitors supporting tags, but gophercloud not see here:https://pkg.go.dev/github.com/gophercloud/gophercloud@v1.1.1/openstack/loadbalancer/v2/monitors#CreateOpts

Is their a need to make a feature request to them too?

Now i need to get my local dev stack ready to at least see if it works :-)

cc: @mdbooth

@mdbooth
Copy link
Contributor

mdbooth commented Jan 24, 2023

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jan 24, 2023
@qeqar qeqar force-pushed the add-tags-to-lb-resources branch 2 times, most recently from 551d75f to 2220a7c Compare January 26, 2023 13:29
Copy link
Contributor

@lentzi90 lentzi90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks fine to me. Do I understand correctly that the point of this is to set the same tags that are specified in openstackcluster.spec.tags on the loadbalancer objects?

Edit: Please squash the commits when you feel ready

Add Tags to loadbalancer struct
Add Tags to the
- loadbalancer
- pool
- listener
- member
Add conversion in all prior apis

NOT for the Monitor object, Openstack supports Tags,
but the Gohpercloud is not (looked also into newest released version
v1.1.1)
@qeqar qeqar force-pushed the add-tags-to-lb-resources branch from 2220a7c to 4791547 Compare January 27, 2023 12:27
@qeqar
Copy link
Contributor Author

qeqar commented Jan 27, 2023

OK squashed and updated the PR.

and yes wanted to add the same Tags as openstackcluster.
They are already used in all other resources.

Copy link
Contributor

@lentzi90 lentzi90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

I will trigger the e2e-full test since this is changing the API and that could affect clusterctl upgrade.

/test pull-cluster-api-provider-openstack-e2e-full-test

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 27, 2023
@qeqar qeqar changed the title ✨ [WIP] Add Tags to API-Loadbalancer resources ✨ Add Tags to API-Loadbalancer resources Jan 27, 2023
@jichenjc
Copy link
Contributor

/approve

still hold for folks to take a quick look

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jichenjc, qeqar

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 30, 2023
@jichenjc
Copy link
Contributor

jichenjc commented Feb 3, 2023

/hold cancel

no other comments, assume good to go :)

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 3, 2023
@k8s-ci-robot k8s-ci-robot merged commit 61a1650 into kubernetes-sigs:main Feb 3, 2023
@qeqar qeqar deleted the add-tags-to-lb-resources branch February 3, 2023 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add tags to loadbalancer resources too

5 participants