You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
authored
[release-1.36] feat: add support for load balancer, listener, and pool tags annotations (#3154)
* feat: add support for load balancer, listener, and pool tags annotations
* feat: refactor load balancer tag handling to use SplitTrim for better parsing
* feat: streamline load balancer listener tag management for improved consistency
* feat: address PR #3058 review feedback for LB tag annotations
- Simplify mergeTags: drop unreachable nil check and redundant else
- Collapse repeated SplitTrim guard blocks at all tag call sites
- Correct annotation comments to comma-separated (not JSON) format
- Add TestMergeTags and listener-tag cases to TestBuildListenerCreateOpt
- Document load-balancer-tags, listener-tags and pool-tags annotations
* Address feedback
* Add withLBNameTag helper
* Rename desiredTags completely
* Change structure
* Outdated comments
* Fix mergeTags to treat empty/empty as no-op
* Prevent duplicate tags
* Also within annotations
* Make sure tags are always populated
* Sanitize user tags
* Reserved service prefix
* Introduce generic helpers
---------
Co-authored-by: A10ss <la10ss@163.com>
Co-authored-by: Alexander Stephan <alexander.stephan@sap.com>
Copy file name to clipboardExpand all lines: docs/openstack-cloud-controller-manager/expose-applications-using-loadbalancer-type-service.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -239,6 +239,20 @@ Request Body:
239
239
240
240
If this annotation is specified, the other annotations which define the load balancer features will be ignored.
241
241
242
+
-`loadbalancer.openstack.org/load-balancer-tags`
243
+
244
+
A comma-separated list of tags to add to the load balancer resource in addition to the tags managed by OCCM. Example: `env=prod,team=network`.
245
+
246
+
> NOTE: Tags starting with `kube_service_` are reserved for OCCM's own ownership and shared-load-balancer tracking. Any such tag supplied through this annotation is ignored (a warning is logged) to avoid conflicting with the tags OCCM manages. This applies to all three tag annotations.
247
+
248
+
-`loadbalancer.openstack.org/listener-tags`
249
+
250
+
A comma-separated list of tags to add to the load balancer listener resources in addition to the tags managed by OCCM. Example: `env=prod,team=network`. Tags starting with the reserved `kube_service_` prefix are ignored (see the note above).
251
+
252
+
-`loadbalancer.openstack.org/pool-tags`
253
+
254
+
A comma-separated list of tags to add to the load balancer pool resources. Example: `env=prod,team=network`. Tags starting with the reserved `kube_service_` prefix are ignored (see the note above).
255
+
242
256
-`loadbalancer.openstack.org/hostname`
243
257
244
258
This annotations explicitly sets a hostname in the status of the load balancer service.
0 commit comments