Commit 699f129
committed
Address review feedback from kayrus
- Remove duplicate clusterUID field from the OpenStack struct so the
identifier lives only on the LoadBalancer struct that actually uses it
(better cohesion).
- Drop fetchClusterUID() out of Initialize() and call it lazily inside
the LoadBalancer() factory instead. Clusters that disable LB now skip
the kube-system namespace lookup entirely, and the change touches only
the LB construction path.
- Remove the unused eventLBStolen constant. It was a leftover from an
earlier draft that intended to emit a Warning event from
getLoadbalancerByName(); plumbing the eventRecorder + *v1.Service into
that free-standing function felt out of scope, so the emission was
dropped but the constant was left behind.1 parent ce06ef6 commit 699f129
2 files changed
Lines changed: 2 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | 115 | | |
122 | 116 | | |
123 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | 170 | | |
176 | 171 | | |
177 | 172 | | |
| |||
211 | 206 | | |
212 | 207 | | |
213 | 208 | | |
214 | | - | |
215 | 209 | | |
216 | 210 | | |
217 | 211 | | |
| |||
405 | 399 | | |
406 | 400 | | |
407 | 401 | | |
408 | | - | |
| 402 | + | |
| 403 | + | |
409 | 404 | | |
410 | 405 | | |
411 | 406 | | |
| |||
0 commit comments