@@ -110,7 +110,6 @@ func (n ingressNetworkingV1Beta1Strategy) ConvertIngress() *Ingress {
110
110
SvcName : k8sPath .Backend .ServiceName ,
111
111
SvcPortInt : int64 (k8sPath .Backend .ServicePort .IntValue ()),
112
112
SvcPortString : k8sPath .Backend .ServicePort .StrVal ,
113
- Status : "" ,
114
113
}
115
114
}
116
115
if rule , ok := rules [k8sRule .Host ]; ok {
@@ -119,9 +118,8 @@ func (n ingressNetworkingV1Beta1Strategy) ConvertIngress() *Ingress {
119
118
}
120
119
} else {
121
120
rules [k8sRule .Host ] = & IngressRule {
122
- Host : k8sRule .Host ,
123
- Paths : paths ,
124
- Status : "" ,
121
+ Host : k8sRule .Host ,
122
+ Paths : paths ,
125
123
}
126
124
}
127
125
}
@@ -137,7 +135,6 @@ func (n ingressNetworkingV1Beta1Strategy) ConvertIngress() *Ingress {
137
135
SvcPortInt : int64 (ingressBackend .ServicePort .IntValue ()),
138
136
SvcPortString : ingressBackend .ServicePort .StrVal ,
139
137
IsDefaultBackend : true ,
140
- Status : "" ,
141
138
}
142
139
}(n .ig .Spec .Backend ),
143
140
TLS : func (ingressTLS []networkingv1beta1.IngressTLS ) map [string ]* IngressTLS {
@@ -147,18 +144,11 @@ func (n ingressNetworkingV1Beta1Strategy) ConvertIngress() *Ingress {
147
144
tls [host ] = & IngressTLS {
148
145
Host : host ,
149
146
SecretName : k8sTLS .SecretName ,
150
- Status : EMPTY ,
151
147
}
152
148
}
153
149
}
154
150
return tls
155
151
}(n .ig .Spec .TLS ),
156
- Status : func () Status {
157
- if n .ig .ObjectMeta .GetDeletionTimestamp () != nil {
158
- return DELETED
159
- }
160
- return ADDED
161
- }(),
162
152
}
163
153
}
164
154
@@ -167,12 +157,6 @@ func (n ingressNetworkingV1Beta1Strategy) ConvertClass() *IngressClass {
167
157
APIVersion : NETWORKINGV1BETA1 ,
168
158
Name : n .class .GetName (),
169
159
Controller : n .class .Spec .Controller ,
170
- Status : func () Status {
171
- if n .class .ObjectMeta .GetDeletionTimestamp () != nil {
172
- return DELETED
173
- }
174
- return ADDED
175
- }(),
176
160
}
177
161
}
178
162
@@ -208,7 +192,6 @@ func (e ingressExtensionsStrategy) ConvertIngress() *Ingress {
208
192
SvcName : k8sPath .Backend .ServiceName ,
209
193
SvcPortInt : int64 (k8sPath .Backend .ServicePort .IntValue ()),
210
194
SvcPortString : k8sPath .Backend .ServicePort .StrVal ,
211
- Status : "" ,
212
195
}
213
196
}
214
197
if rule , ok := rules [k8sRule .Host ]; ok {
@@ -217,9 +200,8 @@ func (e ingressExtensionsStrategy) ConvertIngress() *Ingress {
217
200
}
218
201
} else {
219
202
rules [k8sRule .Host ] = & IngressRule {
220
- Host : k8sRule .Host ,
221
- Paths : paths ,
222
- Status : "" ,
203
+ Host : k8sRule .Host ,
204
+ Paths : paths ,
223
205
}
224
206
}
225
207
}
@@ -235,7 +217,6 @@ func (e ingressExtensionsStrategy) ConvertIngress() *Ingress {
235
217
SvcPortInt : int64 (ingressBackend .ServicePort .IntValue ()),
236
218
SvcPortString : ingressBackend .ServicePort .StrVal ,
237
219
IsDefaultBackend : true ,
238
- Status : "" ,
239
220
}
240
221
}(e .ig .Spec .Backend ),
241
222
TLS : func (ingressTLS []extensionsv1beta1.IngressTLS ) map [string ]* IngressTLS {
@@ -245,18 +226,11 @@ func (e ingressExtensionsStrategy) ConvertIngress() *Ingress {
245
226
tls [host ] = & IngressTLS {
246
227
Host : host ,
247
228
SecretName : k8sTLS .SecretName ,
248
- Status : EMPTY ,
249
229
}
250
230
}
251
231
}
252
232
return tls
253
233
}(e .ig .Spec .TLS ),
254
- Status : func () Status {
255
- if e .ig .ObjectMeta .GetDeletionTimestamp () != nil {
256
- return DELETED
257
- }
258
- return ADDED
259
- }(),
260
234
}
261
235
}
262
236
@@ -292,7 +266,6 @@ func (n ingressNetworkingV1Strategy) ConvertIngress() *Ingress {
292
266
Path : k8sPath .Path ,
293
267
PathTypeMatch : pathType ,
294
268
SvcNamespace : n .ig .GetNamespace (),
295
- Status : "" ,
296
269
}
297
270
if k8sPath .Backend .Service != nil {
298
271
paths [pathKey ].SvcName = k8sPath .Backend .Service .Name
@@ -306,9 +279,8 @@ func (n ingressNetworkingV1Strategy) ConvertIngress() *Ingress {
306
279
}
307
280
} else {
308
281
rules [k8sRule .Host ] = & IngressRule {
309
- Host : k8sRule .Host ,
310
- Paths : paths ,
311
- Status : "" ,
282
+ Host : k8sRule .Host ,
283
+ Paths : paths ,
312
284
}
313
285
}
314
286
}
@@ -321,7 +293,6 @@ func (n ingressNetworkingV1Strategy) ConvertIngress() *Ingress {
321
293
ingPath := & IngressPath {
322
294
SvcNamespace : n .ig .GetNamespace (),
323
295
IsDefaultBackend : true ,
324
- Status : "" ,
325
296
}
326
297
if ingressBackend .Service != nil {
327
298
ingPath .SvcName = ingressBackend .Service .Name
@@ -337,18 +308,11 @@ func (n ingressNetworkingV1Strategy) ConvertIngress() *Ingress {
337
308
tls [host ] = & IngressTLS {
338
309
Host : host ,
339
310
SecretName : k8sTLS .SecretName ,
340
- Status : EMPTY ,
341
311
}
342
312
}
343
313
}
344
314
return tls
345
315
}(n .ig .Spec .TLS ),
346
- Status : func () Status {
347
- if n .ig .ObjectMeta .GetDeletionTimestamp () != nil {
348
- return DELETED
349
- }
350
- return ADDED
351
- }(),
352
316
}
353
317
}
354
318
@@ -357,12 +321,6 @@ func (n ingressNetworkingV1Strategy) ConvertClass() *IngressClass {
357
321
APIVersion : NETWORKINGV1 ,
358
322
Name : n .class .GetName (),
359
323
Controller : n .class .Spec .Controller ,
360
- Status : func () Status {
361
- if n .class .ObjectMeta .GetDeletionTimestamp () != nil {
362
- return DELETED
363
- }
364
- return ADDED
365
- }(),
366
324
}
367
325
}
368
326
0 commit comments