ingress-nginx-helm/internal
Renan Gonçalves 869e18b264
Avoid race conditions by copying the list before sorting (#8573)
When creating several ingresses at the same time a race condition can
happen by modifying a variable deep in another object. When this race
condition is triggered the generated nginx configuration is broken:

```
nginx: [emerg] invalid parameter "8.8.8.8/32,8" in /tmp/nginx-cfg4027854160:671
nginx: configuration file /tmp/nginx-cfg4027854160 test failed
```

Once it happens, the controller won't ever be able to generate the
configuration again. Thus the only option is to restart the process.

There is not really a good way to reproduce this issue. It happens quite
sporadically every 2 or 3 days. However, after this fix has been
applied, we haven't seen it happen after about 4 weeks.

Co-authored-by: Ruud van der Weijde <ruudvanderweijde@gmail.com>
2022-05-23 05:50:03 -07:00
..
admission/controller webhook: remove useless code. (#8236) 2022-02-13 10:25:47 -08:00
file Remove deprecated libraries, update other libs, add ci v1.23 (#8118) 2022-01-09 16:29:12 -08:00
ingress Avoid race conditions by copying the list before sorting (#8573) 2022-05-23 05:50:03 -07:00
k8s Update ingress to go 1.17 (#7521) 2021-08-23 14:25:25 -07:00
net use listen to ensure the port is free (#6990) (#7467) 2021-08-09 05:31:31 -07:00
nginx Jail/chroot nginx process inside controller container (#8337) 2022-04-08 21:48:04 -07:00
runtime Update ingress to go 1.17 (#7521) 2021-08-23 14:25:25 -07:00
sets Refactor isIterable 2019-04-08 10:11:44 -04:00
task remove timestamp when requeuing Element (#7440) 2021-09-06 10:12:28 -07:00
watch Update go version, modules and remove ioutil 2021-08-06 14:15:21 -03:00