@@ -59,10 +59,10 @@ func TestKubeServices(t *testing.T) {
59
59
loadbalancer ("5a5c3d9e-e679-43ec-b9fc-9bc51132541e" , "stocks" ),
60
60
},
61
61
expected : []v1.Service {
62
- service ("finance" , "us-east-stocks- 5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
62
+ service ("finance" , "us-east-5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
63
63
map [string ]string {
64
64
"gimbal.heptio.com/backend" : "us-east" ,
65
- "gimbal.heptio.com/service" : "stocks- 5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
65
+ "gimbal.heptio.com/service" : "5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
66
66
"gimbal.heptio.com/load-balancer-id" : "5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
67
67
"gimbal.heptio.com/load-balancer-name" : "stocks" },
68
68
nil ),
@@ -76,10 +76,10 @@ func TestKubeServices(t *testing.T) {
76
76
loadbalancer ("5a5c3d9e-e679-43ec-b9fc-9bc51132541e" , "very-long-openstack-load-balancer-name-that-is-longer-than-the-limit" ),
77
77
},
78
78
expected : []v1.Service {
79
- service ("finance" , "us-east-very-long-openstack-load-951f9d " ,
79
+ service ("finance" , "us-east-5a5c3d9e-e679-43ec-b9fc-9bc51132541e " ,
80
80
map [string ]string {
81
81
"gimbal.heptio.com/backend" : "us-east" ,
82
- "gimbal.heptio.com/service" : "very-long-openstack-load-balancer-name-that-is-longer-tha951f9d " ,
82
+ "gimbal.heptio.com/service" : "5a5c3d9e-e679-43ec-b9fc-9bc51132541e " ,
83
83
"gimbal.heptio.com/load-balancer-id" : "5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
84
84
"gimbal.heptio.com/load-balancer-name" : "very-long-openstack-load-balancer-name-that-is-longer-tha80b28c" },
85
85
nil ),
@@ -93,10 +93,10 @@ func TestKubeServices(t *testing.T) {
93
93
loadbalancer ("5a5c3d9e-e679-43ec-b9fc-9bc51132541e" , "1234-stocks" ),
94
94
},
95
95
expected : []v1.Service {
96
- service ("finance" , "us-east-1234-stocks- 5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
96
+ service ("finance" , "us-east-5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
97
97
map [string ]string {
98
98
"gimbal.heptio.com/backend" : "us-east" ,
99
- "gimbal.heptio.com/service" : "1234-stocks- 5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
99
+ "gimbal.heptio.com/service" : "5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
100
100
"gimbal.heptio.com/load-balancer-id" : "5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
101
101
"gimbal.heptio.com/load-balancer-name" : "1234-stocks" },
102
102
nil ),
@@ -110,10 +110,10 @@ func TestKubeServices(t *testing.T) {
110
110
loadbalancer ("5a5c3d9e-e679-43ec-b9fc-9bc51132541e" , "1234-STOCKS" ),
111
111
},
112
112
expected : []v1.Service {
113
- service ("finance" , "us-east-1234-stocks- 5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
113
+ service ("finance" , "us-east-5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
114
114
map [string ]string {
115
115
"gimbal.heptio.com/backend" : "us-east" ,
116
- "gimbal.heptio.com/service" : "1234-stocks- 5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
116
+ "gimbal.heptio.com/service" : "5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
117
117
"gimbal.heptio.com/load-balancer-id" : "5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
118
118
"gimbal.heptio.com/load-balancer-name" : "1234-STOCKS" },
119
119
nil ),
@@ -127,10 +127,10 @@ func TestKubeServices(t *testing.T) {
127
127
loadbalancer ("5a5c3d9e-e679-43ec-b9fc-9bc51132541e" , "nginx" ),
128
128
},
129
129
expected : []v1.Service {
130
- service ("finance" , "cluster-name-that-is-defib224b3-nginx- 5a5c3d9e-e679-43ec-e1c9a7 " ,
130
+ service ("finance" , "cluster-name-that-is-defib224b3-5a5c3d9e-e679-43ec-b9fc-9f5b1ae " ,
131
131
map [string ]string {
132
132
"gimbal.heptio.com/backend" : "cluster-name-that-is-definitely-too-long-to-be-useful" ,
133
- "gimbal.heptio.com/service" : "nginx- 5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
133
+ "gimbal.heptio.com/service" : "5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
134
134
"gimbal.heptio.com/load-balancer-id" : "5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
135
135
"gimbal.heptio.com/load-balancer-name" : "nginx" },
136
136
nil ),
@@ -144,10 +144,10 @@ func TestKubeServices(t *testing.T) {
144
144
loadbalancer ("5a5c3d9e-e679-43ec-b9fc-9bc51132541e" , "very-long-openstack-load-balancer-name-that-is-longer-than-the-limit" ),
145
145
},
146
146
expected : []v1.Service {
147
- service ("finance" , "cluster-name-that-is-defib224b3-very-long-openstack-load-951f9d " ,
147
+ service ("finance" , "cluster-name-that-is-defib224b3-5a5c3d9e-e679-43ec-b9fc-9f5b1ae " ,
148
148
map [string ]string {
149
149
"gimbal.heptio.com/backend" : "cluster-name-that-is-definitely-too-long-to-be-useful" ,
150
- "gimbal.heptio.com/service" : "very-long-openstack-load-balancer-name-that-is-longer-tha951f9d " ,
150
+ "gimbal.heptio.com/service" : "5a5c3d9e-e679-43ec-b9fc-9bc51132541e " ,
151
151
"gimbal.heptio.com/load-balancer-id" : "5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
152
152
"gimbal.heptio.com/load-balancer-name" : "very-long-openstack-load-balancer-name-that-is-longer-tha80b28c" },
153
153
nil ),
@@ -161,10 +161,10 @@ func TestKubeServices(t *testing.T) {
161
161
loadbalancer ("5a5c3d9e-e679-43ec-b9fc-9bc51132541e" , "stocks" , listener ("ls-1" , "http" , "tcp" , "pool-1" , 80 )),
162
162
},
163
163
expected : []v1.Service {
164
- service ("finance" , "us-east-stocks- 5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
164
+ service ("finance" , "us-east-5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
165
165
map [string ]string {
166
166
"gimbal.heptio.com/backend" : "us-east" ,
167
- "gimbal.heptio.com/service" : "stocks- 5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
167
+ "gimbal.heptio.com/service" : "5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
168
168
"gimbal.heptio.com/load-balancer-id" : "5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
169
169
"gimbal.heptio.com/load-balancer-name" : "stocks" },
170
170
[]v1.ServicePort {
@@ -185,10 +185,10 @@ func TestKubeServices(t *testing.T) {
185
185
loadbalancer ("5a5c3d9e-e679-43ec-b9fc-9bc51132541e" , "stocks" , listener ("ls-1" , "http" , "tcp" , "pool-1" , 80 )),
186
186
},
187
187
expected : []v1.Service {
188
- service ("finance" , "us-east-stocks- 5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
188
+ service ("finance" , "us-east-5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
189
189
map [string ]string {
190
190
"gimbal.heptio.com/backend" : "us-east" ,
191
- "gimbal.heptio.com/service" : "stocks- 5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
191
+ "gimbal.heptio.com/service" : "5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
192
192
"gimbal.heptio.com/load-balancer-id" : "5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
193
193
"gimbal.heptio.com/load-balancer-name" : "stocks" },
194
194
[]v1.ServicePort {
@@ -209,10 +209,10 @@ func TestKubeServices(t *testing.T) {
209
209
loadbalancer ("5a5c3d9e-e679-43ec-b9fc-9bc51132541e" , "stocks" , listener ("ls-1" , "http" , "tcp" , "pool-1" , 80 ), listener ("ls-1" , "https" , "tcp" , "pool-1" , 443 )),
210
210
},
211
211
expected : []v1.Service {
212
- service ("finance" , "us-east-stocks- 5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
212
+ service ("finance" , "us-east-5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
213
213
map [string ]string {
214
214
"gimbal.heptio.com/backend" : "us-east" ,
215
- "gimbal.heptio.com/service" : "stocks- 5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
215
+ "gimbal.heptio.com/service" : "5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
216
216
"gimbal.heptio.com/load-balancer-id" : "5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
217
217
"gimbal.heptio.com/load-balancer-name" : "stocks" },
218
218
[]v1.ServicePort {
@@ -292,10 +292,10 @@ func TestKubeEndpoints(t *testing.T) {
292
292
pool ("pool-1" , "HTTP" , "5a5c3d9e-e679-43ec-b9fc-9bc51132541e" , poolmember ("10.0.0.1" , 8080 )),
293
293
},
294
294
expected : []v1.Endpoints {
295
- endpoints ("finance" , "us-east-stocks- 5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
295
+ endpoints ("finance" , "us-east-5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
296
296
map [string ]string {
297
297
"gimbal.heptio.com/backend" : "us-east" ,
298
- "gimbal.heptio.com/service" : "stocks- 5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
298
+ "gimbal.heptio.com/service" : "5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
299
299
"gimbal.heptio.com/load-balancer-id" : "5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
300
300
"gimbal.heptio.com/load-balancer-name" : "stocks" },
301
301
[]v1.EndpointSubset {
@@ -317,10 +317,10 @@ func TestKubeEndpoints(t *testing.T) {
317
317
pool ("pool-1" , "HTTP" , "5a5c3d9e-e679-43ec-b9fc-9bc51132541e" , poolmember ("10.0.0.1" , 8080 )),
318
318
},
319
319
expected : []v1.Endpoints {
320
- endpoints ("finance" , "cluster-name-that-is-defi7afb09-stocks- 5a5c3d9e-e679-43ec549cd6 " ,
320
+ endpoints ("finance" , "cluster-name-that-is-defi7afb09-5a5c3d9e-e679-43ec-b9fc-9f5b1ae " ,
321
321
map [string ]string {
322
322
"gimbal.heptio.com/backend" : "cluster-name-that-is-definitely-too-long-to-be-useful-in-7afb09" ,
323
- "gimbal.heptio.com/service" : "stocks- 5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
323
+ "gimbal.heptio.com/service" : "5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
324
324
"gimbal.heptio.com/load-balancer-id" : "5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
325
325
"gimbal.heptio.com/load-balancer-name" : "stocks" },
326
326
[]v1.EndpointSubset {
@@ -342,10 +342,10 @@ func TestKubeEndpoints(t *testing.T) {
342
342
pool ("pool-1" , "HTTP" , "5a5c3d9e-e679-43ec-b9fc-9bc51132541e" , poolmember ("10.0.0.1" , 8080 )),
343
343
},
344
344
expected : []v1.Endpoints {
345
- endpoints ("finance" , "us-east-very-long-openstack-load-951f9d " ,
345
+ endpoints ("finance" , "us-east-5a5c3d9e-e679-43ec-b9fc-9bc51132541e " ,
346
346
map [string ]string {
347
347
"gimbal.heptio.com/backend" : "us-east" ,
348
- "gimbal.heptio.com/service" : "very-long-openstack-load-balancer-name-that-is-longer-tha951f9d " ,
348
+ "gimbal.heptio.com/service" : "5a5c3d9e-e679-43ec-b9fc-9bc51132541e " ,
349
349
"gimbal.heptio.com/load-balancer-id" : "5a5c3d9e-e679-43ec-b9fc-9bc51132541e" ,
350
350
"gimbal.heptio.com/load-balancer-name" : "very-long-openstack-load-balancer-name-that-is-longer-tha80b28c" },
351
351
[]v1.EndpointSubset {
@@ -361,18 +361,18 @@ func TestKubeEndpoints(t *testing.T) {
361
361
tenantName : "finance" ,
362
362
backendName : "us-east" ,
363
363
lbs : []loadbalancers.LoadBalancer {
364
- loadbalancer ("loadbalancer-1 " , "stocks" , listener ("listener-1" , "http" , "tcp" , "pool-1" , 80 ), listener ("listener-2" , "https" , "tcp" , "pool-2" , 443 )),
364
+ loadbalancer ("5a5c3d9e-e679-43ec-b9fc-9bc51132541e " , "stocks" , listener ("listener-1" , "http" , "tcp" , "pool-1" , 80 ), listener ("listener-2" , "https" , "tcp" , "pool-2" , 443 )),
365
365
},
366
366
pools : []pools.Pool {
367
- pool ("pool-1" , "HTTP" , "loadbalancer-1 " , poolmember ("10.0.0.1" , 8080 ), poolmember ("10.0.0.2" , 80 ), poolmember ("10.0.0.3" , 80 ), poolmember ("10.0.0.4" , 8080 )),
368
- pool ("pool-2" , "HTTP" , "loadbalancer-1 " , poolmember ("10.0.0.5" , 443 ), poolmember ("10.0.0.6" , 443 ), poolmember ("10.0.0.7" , 8443 )),
367
+ pool ("pool-1" , "HTTP" , "5a5c3d9e-e679-43ec-b9fc-9bc51132541e " , poolmember ("10.0.0.1" , 8080 ), poolmember ("10.0.0.2" , 80 ), poolmember ("10.0.0.3" , 80 ), poolmember ("10.0.0.4" , 8080 )),
368
+ pool ("pool-2" , "HTTP" , "5a5c3d9e-e679-43ec-b9fc-9bc51132541e " , poolmember ("10.0.0.5" , 443 ), poolmember ("10.0.0.6" , 443 ), poolmember ("10.0.0.7" , 8443 )),
369
369
},
370
370
expected : []v1.Endpoints {
371
- endpoints ("finance" , "us-east-stocks-loadbalancer-1 " ,
371
+ endpoints ("finance" , "us-east-5a5c3d9e-e679-43ec-b9fc-9bc51132541e " ,
372
372
map [string ]string {
373
373
"gimbal.heptio.com/backend" : "us-east" ,
374
- "gimbal.heptio.com/service" : "stocks-loadbalancer-1 " ,
375
- "gimbal.heptio.com/load-balancer-id" : "loadbalancer-1 " ,
374
+ "gimbal.heptio.com/service" : "5a5c3d9e-e679-43ec-b9fc-9bc51132541e " ,
375
+ "gimbal.heptio.com/load-balancer-id" : "5a5c3d9e-e679-43ec-b9fc-9bc51132541e " ,
376
376
"gimbal.heptio.com/load-balancer-name" : "stocks" },
377
377
[]v1.EndpointSubset {
378
378
{
0 commit comments